HackerTrans
TopNewTrendsCommentsPastAskShowJobs

xonre

no profile record

comments

xonre
·17 วันที่ผ่านมา·discuss
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 ()
  then
    ...
after `if` and `elseif` the parser simply goes on until it finds `then`.
xonre
·เดือนที่แล้ว·discuss
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 examined thus the unreadable compiler errors and slower compilation as it's regenerated every time.

Slightly off-topic: Rust can also be mentally mapped to C.
xonre
·3 เดือนที่ผ่านมา·discuss
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 style remains very friendly to those who like C with classes.
xonre
·8 เดือนที่ผ่านมา·discuss
PHP should do a real major compatibility break and remove $ sigil from variable names. It's gonna be worth the pain!
xonre
·8 เดือนที่ผ่านมา·discuss
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.