Viewing profile — neutrono
neutrono
HN member- Joined
- Sat, Aug 20, 2022, 11:53 PM UTC
- HN karma
- 30
- Public activity
- 18 items
- HN profile
- View on Hacker News ↗
About neutrono
Recent public activity
-
comment
Comment #39083171
It should have been called _Overload or something similar, since it's not really a generic.
-
comment
Comment #38344663
How to kill your company in one week?
-
comment
Comment #37681566
In C23 you can use the attribute [[nodiscard]] on functions to mark that the result from function shouldn't be discarded. I think there is also a [[reproducible]] attribute for say…
-
comment
Comment #37502604
I think he means that the C API is stack based?
-
comment
Comment #37180978
What is nano lacking in power?
-
comment
Comment #37180709
One can always use Home and End in that case.
-
comment
Comment #36171077
Well, IIRC even in the K&R book, a book which many C programmers admire for it's excellent documentation and prose, and rightly so, there is a specific section mentioning that C's …
-
comment
Comment #36168029
The declaration syntax and the lack of a proper module/namespacing system is also a mistake, but perhaps not as big as the way arrays decays into pointers. Implicit conversions I s…
-
comment
Comment #36006991
Citizens have a huge amount of power within the government, being able to vote in elections and pursue ballot initiatives. How is that not a democracy?
-
comment
Comment #35269546
Only one I could think of is posix_spawn[0], although it has different constraints than fork()/exec()... [0]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/p...
-
comment
Comment #35214520
Ada 2012 has expression functions declare function f (i: Integer) returns Integer is ( i * 2 ); x : Integer; begin x := f(21); end;
-
comment
Comment #34542147
Another stab at a "typed Lua" is this paper by one of the original authors of Lua: https://doi.org/10.1016/j.scico.2020.102393 The paper describes the language Pallene
-
comment
Comment #34332795
Maybe something similar to Troff eqn language? Or the formula language in Libreoffice Math? Both of these are a bit more approachable than LaTeX's math mode, IMO.
-
comment
Comment #33457292
You can hack it with the \m[ ] escape in groff: \m[blue]int\m[] x Of course, you would use some kind of pre-processor to make this less of a PITA, but it's not inconceivable.
-
comment
Comment #33024183
isn't y = x + x++; undefined behavior in C, because of a lack of a sequence point? If that's true, then it makes sense for no C programmer to know what happens.. I think to fix it …
-
comment
Comment #32880418
how is auto main() -> int { hello ("world\n"); } any better?
-
comment
Comment #32537151
Sadly I don’t know how to futz about with traps, I just haven’t gotten to that point yet in my use of groff. First I would point you to the manpage, but, we all know that manpages …
-
comment
Comment #32536311
NB: I'm new to HN, so please excuse any formatting errors in this comment. Well, I've been using groff on and off for a few years, I can give it a shot. Most "macros" as in TeX, ar…