Hacker Newsnew | past | comments | ask | show | jobs | submit | drcxd's commentslogin

Strictly speaking, Lua is not global by default. All free names, that is, all names unqualified with `local`, is actually indexed from a table `_ENV`, which is set to `_G`, the global environment. So, all free names are effectively global by default, but you can change this behavior by put this line at the top of your file `local _G = _G; _ENV = {};`. This way, all free names are indexed from this new table, and all access to the global names must explicitly be accessed through `_G`, which is a local variable now. However, I have never seen such practice. Maybe it is just too complicated to accept that all free names are global variables and you have to explicitly make it local.


Thanks to Lua’s great metaprogramming facilities, and the fact that _G is just a table, another workaround is to add a metamethod to _G that throws an error if you try to declare a global. That way you can still declare globals using rawset if you really want them, but it prevents you from declaring them accidentally in a function body.


Obviously, since the training material for such esoteric languages is scarce. (That's why they are esoteric!) So by definition, LLM will never be good at esoteric languages.


I have been watching for Typst for more than a year but there are still things Typst can not do as easily as LaTeX, see https://qwinsi.github.io/tex2typst-webapp/impl-in-typst.html for examples. So, I do not agree with the statement that Typst can fully replace LaTeX, at least, for now.

Other than the product itself, there are ecosystem issues as well. LaTeX has mature support in editors such as Emacs. However, support for Typst in Emacs is still in development. Thus, for now, I will keep using LaTeX, but I would keep Typst as an option.


That page has a reasonable re-creation, with trivial usage at call-sites, of each missing feature though? The only one that looks a bit revolting is the large pipe example


> I believe the AI agentic coders will threat tech giants more than it - collectively - threats software engineers.

Currently, I don't think so. Coding agents' performance generally depends on the quality of the model behind them. Running a powerful model is assets-dependent. Not everyone has the hardware and power to support Sonnet 4.5 or Gemini 3 even if they are open-source. So, before the top notch models can be deployed on personal computing devices, I would not say coding agents will threat any organization.


You don't have to self host, $100/engineer/mo is enough for many usecases.


Yeah, code is data, data is code. Every Lisp programmer knows that.


True. Arch Wiki is one of the best documentation system I have ever seen, which is also why I always choose Arch-derived OSes.


The moment I saw this post, the idea of submitting itself to itself came to me. Really amusing.


Glad to see I am not the only HN users that work in such companies.


Remind me the another recent post: You should write an agent https://news.ycombinator.com/item?id=45840088


That's because OP wrote that


> Me: It sounds like you’ve got mixed emotions at the moment. On the one hand, you’re happy that your boss says you’re doing a good job. But you’re questioning that, given the problems you’re having with Legal. Did I get that right?

No offense. However, this response from the first example feels robotic to me. It feels like I am talking with some kind of artificial intelligence. I guess we have to make it sounds more natural. In fact, the following examples feel more smooth to me.


Exactly. I was actively reading until I reached that first example. Someone giving me such responses would make want to slap them in the face. Are you some old version of ChatGPT??


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: