Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xonre
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
xonre
3mo ago
For readability, `then` allows splitting with newlines very long conditional expressions, without having to wrap the condition in parentheses: if x + y + z > a or verylongconditionalhere () or anotherverylongconditionalhere (
2.
▲
by
xonre
3mo ago
Still true for C++. Can still mentally map new features to the core language C. A modern Cfront transpiler can still be written. Template meta-programming maps to C pre-processor macros. The sad part with both is generated code cannot be ex
3.
▲
by
xonre
6mo ago
That place is C++/Lua, with most of the code in Lua. Concurrency model is thread-per-lua-state. Interthread comms is message passing implemented via textbook c++11 atomic and condition variables. Lua is just a small C library so the st
4.
▲
by
xonre
10mo ago
PHP should do a real major compatibility break and remove $ sigil from variable names. It's gonna be worth the pain!
5.
▲
by
xonre
11mo ago
Tl;dr: it's an autoconf problem Article also misses: comparing speed of full rebuilds. Pch gives massive speedup on edit-compile-debug cycle or when several modules can share a single pch.
6.
▲
by
xonre
1y ago
Yes you should. You'll need a glob function, cd/getcwd/setcwd, pretty-printer. That's about it. Lua stdlib replaces sed, awk, grep, cut, tr, tail, etc. Startup time is the best. In my testing, a lua script that functions
7.
▲
by
xonre
1y ago
Load the table. Modify. Serialize to file. Not too hard. Emacs does it with the .emacs file, mixing generated and manual content.
8.
▲
by
xonre
1y ago
Lua is C in Lisp's clothing. Lisp killer features were GC, good data representation, first class functions. Lua has all that and more. But its being a "thin" library over the C runtime shows through the clothes.
9.
▲
by
xonre
2y ago
You are correct wrt to iostream, it's bad. I stick to studio.h.
10.
▲
by
xonre
2y ago
It's probably auto when you wanted auto&. A copy was made instead of a reference. I've been bitten by that.