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... .…
5y ago·view thread
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).
5y ago·view thread
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…
5y ago·view thread
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 …
5y ago·view thread
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)…
5y ago·view thread
comment
That would likely break backward compatibility of existing implementation-defined behavior.
5y ago·view thread
comment
I’m surprised the line-number references don’t auto-adjust when inserting/splitting/joining lines. That’s not very practical.
5y ago·view thread
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…
5y ago·view thread
comment
It seems like tree tabs in browsers, except limited to three levels.
5y ago·view thread
comment
I fully agree. Luckily there’s RebootBlocker: https://news.ycombinator.com/item?id=25971264
5y ago·view thread
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.
5y ago·view thread
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.
5y ago·view thread
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.
5y ago·view thread
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 …
5y ago·view thread
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&…
5y ago·view thread
comment
“Component” might fit the bill.
5y ago·view thread
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…
5y ago·view thread
comment
That doesn‘t seem too different anymore to the invalidate/paint paradigm of traditional UI frameworks (e.g. win32 GDI).
5y ago·view thread
comment
How large is the state space for each cell? Full 8-bit RGB (= 24 bits)?
5y ago·view thread
comment
Thanks!
5y ago·view thread
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 …
5y ago·view thread
comment
> What do they do then? Name it Neoneomc? ArgoMC, obviously. ;)
5y ago·view thread
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…
5y ago·view thread
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…
5y ago·view thread
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 …
5y ago·view thread
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 …
5y ago·view thread