back
user profile
layer8
40,765karma·16,215submissions·June 22, 2018
recent activity (16,215 total)
comment
That seems to be disputed, see https://law.stackexchange.com/questions/27768/is-there-a-loo... .…
comment
You can usually use regexes for tokenization, which is sufficient for syntax highlighting, but you generally can’t use regexes for parsing (nested structures).
comment
Under GPL-like licenses you are obligated to provide source code if you provide a binary. If you don’t distribute anything, e.g. you only use something privately, then there are effectively no obligat…
comment
Implementations can define behavior for undefined behavior. The difference to implementation-defined behavior is that for the latter implementations MUST define some behavior (from the set of options …
comment
It might still not help in he case of sscanf. The documentation would specify that it’s O(N) in the size of the input string, just what one would expect without deeper thought. The problem is not O(N)…
comment
That would likely break backward compatibility of existing implementation-defined behavior.
comment
I’m surprised the line-number references don’t auto-adjust when inserting/splitting/joining lines. That’s not very practical.
comment
Did you consider allowing arbitrary tree structures? That might be easier to explain, by analogy to directory trees. Of course having fixed levels has its benefits. It reminds me a bit of the notebook…
comment
It seems like tree tabs in browsers, except limited to three levels.
comment
I fully agree. Luckily there’s RebootBlocker: https://news.ycombinator.com/item?id=25971264
comment
For me it’s the opposite: I get RSI from having to stretch my hands to press 2-3 modifiers simultaneously, whereas moving my hands a bit is no problem.
comment
Those keys already have their own layers in a lot of software. Having to press yet another additional modifier key destroys usability and muscle memory.
comment
Full-sized (full-height!) F keys, full-sized inverted-T arrow keys, dedicated Ins/Del/Home/End/PgUp/PgDown keys, and the Menu key (as on the Thinkpad) would be ideal.
comment
I wanted to create a language named Teal, just to be able to name the compiler Teal'c (or really tealc). I was disappointed the name was already taken, and even more disappointed the compiler is …
comment
I hope they also finally allow black on yellow highlighting again (like pretty much every other browser), which hasn’t been possible since Firefox 3.5 in 2009. https://bugzilla.mozilla.org&…
comment
“Component” might fit the bill.
comment
The divergent timeline model is indeed even necessary in the first place to achieve exponential growth. If there is only one timeline, only linear growth is possible (because the subjective history do…
comment
That doesn‘t seem too different anymore to the invalidate/paint paradigm of traditional UI frameworks (e.g. win32 GDI).
comment
How large is the state space for each cell? Full 8-bit RGB (= 24 bits)?
comment
Thanks!
comment
I couldn’t find any information on what specific kinds of errors are recognized (except JNI memory handling), or how (mechanism) one specifies to the tool what constitutes an error. Can you shed some …
comment
> What do they do then? Name it Neoneomc? ArgoMC, obviously. ;)
comment
Yes, the only real advantage over zip files seems to be the parameter substitution. I’d rather build that on top of the zip format, which supports extension by custom fields, and provide a wrapper aro…
comment
Ifs and type checks are not a substitute for the visitor pattern, at least in statically typed languages, because they don't give you compile-time checks (exhaustiveness checking, as you say). Th…
comment
The benefit is that you can decouple the implementation of the operation from the implementation of the sum type. For example, a library can provide a sum type, and users of the library can implement …
comment
The core essence of the visitor pattern is to implement case distinction on sum types in languages that do not natively support sum types. Double dispatch is merely the mechanism by which the visitor …