Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
veltas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
301.
▲
by
veltas
2y ago
How do you implement a non-backtracking NFA other than converting it to a DFA?
302.
▲
by
veltas
2y ago
> Those functions don't use reflection. Sorry I mean macros / or whatever. You know what I mean(?). > that's a trade-off that you lose as soon as you write more than a maybe a hundred lines of code And yet you can have
303.
▲
by
veltas
2y ago
> C isn't a very powerful language. Okay. > I thought that would be too trivial demonstrate though. If you really don't like how it looks, you can fix it with two more lines of reader macros. The result would be a nicer synt
304.
▲
by
veltas
2y ago
> Does the call to DEPTH still work in that case? Code using the braces can use those definitions when you want to remove the overhead, and it disables the feature. This lets you use it as a programming aid, and then remove the overhead
305.
▲
by
veltas
2y ago
> it would seem to be limited to 30 levels of brace nesting Yes because I declared 30 cells, you can declare more if you want. > Unless I am mistaken, it requires a pointless increment and decrement of a variable before and after ever
306.
▲
by
veltas
2y ago
Here's why it's interesting: https://termbin.com/blz3 There you go, now it has parens, just backwards. Can even use parens instead of braces if you want, I just didn't want to overwrite comment syntax.
307.
▲
by
veltas
2y ago
Maybe this is useful for real time memory management? 'arrays' for instance, if dynamically sized, can always cause fragmentation. It feels like you can get relatively efficient traversal and random access in these counted b-tre
308.
▲
by
veltas
2y ago
I filled a job role that had been up for a year once, they weren't happy with the candidates until they saw me, this was in a less populated area.
309.
▲
by
veltas
2y ago
I'm not literally saying we can't do them, just that as you say they're not popular.
310.
▲
by
veltas
3y ago
I've often wondered if one reason we don't get amazing like-life paintings is because we have photos.
311.
▲
by
veltas
3y ago
But autism isn't defined by intelligence or age. You might as well say 'isn't alcoholism such a broad definition, when everyone from world leaders to young people to a perennial loner 80+ year old finally discovering that th
312.
▲
by
veltas
3y ago
> there's lot's of buzz for example on Twitter about how some old stuff was beautiful and the new one is ugly. They are doing this for political propaganda and money Some of us really do prefer the old stuff, not just for the p
313.
▲
by
veltas
3y ago
> And while many religions teach that God intervenes in human affairs, none of them, as far as I know, believe that he responds to whining. (Would you worship a god who does miracles if you just annoy him enough?) It's not exactly a
314.
▲
by
veltas
3y ago
Yes it's worth taking a minute to appreciate how well DEFLATE and gzip has stood up over the years. It's a brilliant format and tool. I was definitely a little too ready to believe the paper that claimed gzip's ability to c
315.
▲
by
veltas
3y ago
So there's no return address?
316.
▲
by
veltas
3y ago
Some mail machines cut thick or oversized envelopes by accident sometimes. So this might not have been tampered with. The right way to deal with anything you receive by mail is to return to sender, as long as it has a return address. Cros
317.
▲
by
veltas
3y ago
Bryan Lunduke is a tech youtuber who has occasional commentary on extreme political ideas popping up in places like IBM, and his last video was critical of Rust-as-a-feature projects. I can't help but wonder if this is what actually g
318.
▲
by
veltas
3y ago
It's a build option, the variable 'tokenised' controls whether it builds tokenised or direct threaded. The macro DX outputs either a token or word depending on whether a token is available and whether 'tokenised' is
319.
▲
by
veltas
3y ago
In my experience you get a lot of density moving to a variable-width font, which is quite easy to write for a Z80 system. For example I've designed a couple with the horizontal size in the first byte of the bitmap: https://g
320.
▲
by
veltas
3y ago
Yes, and they are 'leading by example', they start by scrutinising their own practices.
321.
▲
by
veltas
3y ago
Keeping .c and .h files separate is pointless, *.c and *.h can pick them out when necessary. 'include' is a good choice for libraries, the external interface, but not necessary for internal headers.
322.
▲
by
veltas
3y ago
This is a long-needed, but gratefully accepted improvement to GCC. I've seen in the wild just how many people see a 'warning' and consider it ignorable, even though many warnings in GCC are certain indication of broken code
323.
▲
by
veltas
3y ago
If I understand right, this is mandatory: void example(int n) { printf("%zu", sizeof(int[n])); } void example2(int n, int (*a)[n]) { } This is optional: void example3(int n) { int x[n]; }
324.
▲
by
veltas
3y ago
As someone who doesn't know a lot about distro work, what exactly did you have to do for Fedora? Fix packages that weren't building anymore with this change?
325.
▲
by
veltas
3y ago
It wouldn't have been surprising to make this the default in the 90's even. The things here are pretty much never done intentionally post-standardisation. And it's easy to force these back to being just warnings to make old b
326.
▲
by
veltas
3y ago
You can still compile these by downgrading the errors to warnings. They are just errors-by-default now.
327.
▲
by
veltas
3y ago
What if my GPU is totally off most of the time and it turns on my secondary GPU for games which increases the heat of my laptop considerably even doing very little? Do they let me select which GPU is used or just the 'default' bec
328.
▲
by
veltas
3y ago
> GPUI rasterizes the entire window on the GPU, just like a 3D video game. So my laptop will be roasting hot constantly?
329.
▲
by
veltas
3y ago
Which trial?
330.
▲
by
veltas
3y ago
If you want an example read all of https://www.bailii.org/ew/cases/EWHC/QB/2007/5.html
More ›