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

> so they are more memory efficient

They can be. It depends on the language, interpreter, compiler, and whether you do anything with those intermediate variables and the optimiser can get rid of them.


I thought we are talking about PHP8.5:)

Ah, I thought we were talking more generally about PL constructs that let you avoid intermediate variables, apologies :)

I cannot agree with this enough :)

I live right in Red Hill. Bluey is literally my home! This is my neighbourhood! This is the first time I've ever felt that... and its amusing to feel that as a person in my mid 30s from a childrens show.

I love Brisbane so much, and this article captures the uniqueness so well.


Sadly true: and I’m one of those who walks their talk wrt. small phones. I don’t need a ute, though, so I drive a cupra born instead

PEGs (even outside Janet) are amazing and what I reach for all the time :) definitely one of those tools that’s worth learning!

Yep peg.el[1] is now built-into Emacs since 30.1 (which is how I came to know of it, but actually the library seems much older) and it makes certain things much simpler and faster to do than before (once you figure out its quirks).

[1] https://github.com/emacs-mirror/emacs/blob/master/lisp/progm...


> PEGs (even outside Janet) are amazing […] worth learning!

Actually, the opposite is the case. https://news.ycombinator.com/item?id=32316375

HN readers, don't fall into this trap and waste your time.


Ah yes, I, the non-python programmer, find PEGs useful and good because of checks notes Guido, somehow? What a ridiculous comment.

> But I wish we'd get over this phase where everyone thinks they're an expert, and that every bad codebase or slow app was the result of someone who didn't care.

I can only speak to my own experience, but it’s been this way for the entire 18 years I’ve been doing this professionally and I can’t see it stopping anytime soon.

I just ignore it and write off people who openly think that way. It shows a lack of experience and empathy.


Tbf that’s what post-deployment verification tests sre ideal for, instead of as integration/e2e tests blocking your merges/deployments


That's fine. If they're too slow, run them post deployment. But do run them at some point so you can at least catch it quickly without waiting for user complaints.


Confluence, and DAC mostly


DRM becoming so entrenched in the web still makes me sad beyond measure


Same! I was really hoping it was discussed. I’m assuming “lots, but it depends on what you’re working on”?


Parsing expression grammars (pegs) are usually IME more maintainable long term, partially just because of much more testable and composable they are


I suspect but am not sure that PEGs cannot do negative nor positive lookbehind, but it is not a very used feature.


Yeah that’s true IIRC but it’s rarely been a problem for my usage!


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

Search: