Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
neutrono
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
neutrono
3y ago
It should have been called _Overload or something similar, since it's not really a generic.
2.
▲
by
neutrono
3y ago
How to kill your company in one week?
3.
▲
by
neutrono
3y ago
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 saying a function doesn't do side e
4.
▲
by
neutrono
3y ago
I think he means that the C API is stack based?
5.
▲
by
neutrono
3y ago
What is nano lacking in power?
6.
▲
by
neutrono
3y ago
One can always use Home and End in that case.
7.
▲
by
neutrono
3y ago
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 declaration syntax has been castigated. Next,
8.
▲
by
neutrono
3y ago
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 suppose could also be classified as a mistake.
9.
▲
by
neutrono
3y ago
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?
10.
▲
by
neutrono
4y ago
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...
11.
▲
by
neutrono
4y ago
Ada 2012 has expression functions declare function f (i: Integer) returns Integer is ( i * 2 ); x : Integer; begin x := f(21); end;
12.
▲
by
neutrono
4y ago
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
13.
▲
by
neutrono
4y ago
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.
14.
▲
by
neutrono
4y ago
You can hack it with the \m[<color>] 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.
15.
▲
by
neutrono
4y ago
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 you would have to go like: y = x; y =
16.
▲
by
neutrono
4y ago
how is auto main() -> int { hello ("world\n"); } any better?
17.
▲
by
neutrono
4y ago
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 are a mess, so it might not be there. I will however point y
18.
▲
by
neutrono
4y ago
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, are invoked by having the first character