ANTLR is for writing parsers. You don’t need a new custom parser, just use an existing XML parser.
- 0 posts
- 22 comments
- 2 years
There are IDE extensions that show the diff of the entire PR locally without having to squash anything. So yes, it’s weird to reinvent a square wheel.
- 2 years
I am currently writing a C compiler, with my own backend (and hopefully, frontend) in OCaml.
But why write your own C frontend? It’s much more of a pain than people imagine. I maintain a C frontend implemented in OCaml (the project itself goes back 25 years) and it’s still not on par with GCC or Clang.
For any other language, sure, but C has so many “wonderful” features, starting with the lexer hack. Your grammar conveniently overlooks this issue but it’s something you’ll have to deal with to actually implement it. So it simply won’t be as nice as theory suggests.
sim642@lemm.eeto
Programming@programming.dev•If a parameter isn't used, what should I pass? - The Old New Thing
2 yearsYes, but with things like syscalls it’s easier to do this than require every high-level thing building on the syscall to be modified and recompiled. Very few people need to use such low-level APIs.
sim642@lemm.eeto
Programming@programming.dev•Mozilla will move Firefox development from Mercurial to Microsoft’s GitHub
3 yearsThis is the crucial detail that everyone is missing.
It’s the same as with the Linux kernel GitHub mirror.
I might be the minority who was affected by this but how they handled the physical goodies last year was the last straw for me. Unlike all the spammy contributions that rush to it, I didn’t rush creating some pointless PRs on the first day or whatever. My last PR finished its embargo period a few days before the end of October. They even sent out a congratulations email, but when I clicked the link and went to the website there wasn’t anything there. Only when I checked their discord, I saw others with the same confusion and someone semi-officially saying they might’ve run out. It’s obvious they didn’t even ever consider running out and had no system in place to handle that.
Other than that, some of the rules they introduced in recent years were also so detrimental to meaningful PRs even though they thought it’d motivate that, instead of spammy PRs. Clearly that didn’t work at all and actually had the opposite effect in some cases. It was a lot easier to get spammy PRs counted than meaningful ones.
I could rant in more detail about the latter if you’re interested, but I’ll refrain right now.
Hacktoberfest.
I still do both (and did before), but now just don’t bother with Hacktoberfest.
Nice that someone’s happy about it. As a long time open source contributor and maintainer, I gave up this year because it’s gone downhill.
sim642@lemm.eeto
Programming@programming.dev•I accidentally removed the WHERE clause from my SQL query in a personal tool. Every row is now the same. I overwrote 206,000+ rows. I have no backup, I am stupid.
3 yearsTransactions aren’t backups. You can just as easily commit before fully realizing it. Backups, backups, backups.
I’m really curious what this patented security application is if the Android API already provided it.
sim642@lemm.eeto
Programming@programming.dev•Is it really a breaking change if a method changes output after an update?
3 yearsIt’s your project, do whatever you want.
If changing any observable behavior meant a breaking change, then you couldn’t ever change anything. Even a bug fix changes observable behavior. Some people don’t seem to be considering that here…
sim642@lemm.eeto
Programming@programming.dev•Hear me out: A scripting language that compiles to bash or sh (any suggestions?)
3 yearsYes, that’s where it’s name comes from!
- 3 years
It doesn’t outperform C, it outperforms a C extension to Ruby.
sim642@lemm.eeto
Programming@programming.dev•Hear me out: A scripting language that compiles to bash or sh (any suggestions?)
3 yearsWhy not another scripting language (no compile necessary)?
But you’re describing compiling that new language to bash…
- 3 years
Your lifetime is probably longer than 10 years.
sim642@lemm.eeto
Sync for Lemmy@lemmy.world•Daily Lemmy comments up from ~7m to ~11m following the launch of Sync?English
3 years11 million comments per day? Am I the only one surprised by that?
That’s 5 times more than Reddit in 2015: https://www.quora.com/How-many-comments-are-made-on-reddit-each-day.
sim642@lemm.eeto
Programming@programming.dev•LPT: ChatGPT is incredible for generating and evaluating regexEnglish
3 yearsThe syntax of regular regexes is the same across languages though. It’s just the regex library which is different, but so is every other library between languages.



That was fast.