Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
teo_zero
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
751.
▲
by
teo_zero
3y ago
I suggest you add a trailing - (hyphen) to detect scripts unable to treat filenames separately from options.
752.
▲
by
teo_zero
3y ago
I disagree. There's also a Return key, but you don't want CR in file names. A file name is not a document's title.
753.
▲
by
teo_zero
3y ago
The "big bug" indeed limits the possibilities of _Generic. But if you really want to abuse it beyond its intended scope, I think you can simply add some casting, and not the gimmicks with nested _Generic. #define length(x) _Ge
754.
▲
by
teo_zero
3y ago
To prove your assertion, would you mind defining a length() function via macros that works with both a char * and a pointer to a struct {int len; char *data}, as the fine article explained?
755.
▲
by
teo_zero
3y ago
_Generic is not part of the macro level.
756.
▲
by
teo_zero
3y ago
I don't understand this: > at least a 16:10 ratio, if not taller Should the ratio be at least or at most 16:10?
757.
▲
by
teo_zero
3y ago
But this is not the original problem! Only p's should decrease the counter, in your code every non-s does.
758.
▲
by
teo_zero
3y ago
Easy: I'll invest the same effort but for the double of time.
759.
▲
by
teo_zero
3y ago
Your reasoning is sound, but is based on this assumption: > These are relatively rare scenarios. I wonder if this is true...
760.
▲
by
teo_zero
3y ago
> Just look at `rand()`, it's basically unusable. It does have some limitations you must be aware of, but "unusable"?
761.
▲
by
teo_zero
3y ago
I liked every bit of it! I wonder if we should pretend from every AI agent to attach a confidence level to every answer they utter.
762.
▲
by
teo_zero
3y ago
If you pre-allocate a large enough buffer, you can keep a pointer to mark the boundary between the part where you have already stored data and the part still empty. Then re-implement malloc() to just move such pointer. Of course you must ch
763.
▲
by
teo_zero
3y ago
> I decided to use C. Wait a minute, isn't that illegal? This might surprise you but, it is not! You are not forced to use Rust for all new projects henceforth! That made my day!
764.
▲
by
teo_zero
3y ago
I've always thought this anecdote about Henry Ford is misleading, if not utterly false. In most cases giving people what you think is best for them and not what they ask for, results in a completely failure. Only a small percentage of
765.
▲
by
teo_zero
3y ago
Ok, you convinced me about the upward trip. Now what about returning to the app window?
766.
▲
by
teo_zero
3y ago
Please note that in the paragraphs that you quoted Stallman is talking about hardware, not firmware. He tolerates firmware blobs only if they are loaded once to the device and never changed (yes, I know it's more complex than this, rea
767.
▲
by
teo_zero
3y ago
Useful-useless isn't the only metric.
768.
▲
by
teo_zero
3y ago
But you don't have argc, only argv. The C stub will derive argc by traversing argv and then pass both to main().
769.
▲
by
teo_zero
3y ago
Why reader mode?! It simply strips all styles and only retains contents. This webpage has no style, so reader mode should do nothing. If you see differences, it means your browser has different defaults for reader mode and normal mode. Choo
770.
▲
by
teo_zero
3y ago
From the docs: > For this to work 'setxkbmap -option compose:menu' must be run after keyd has started. So now I need to run keyd AND setxkbmap, and setup my configuration in /etc/keyd AND ~/.XCompose
771.
▲
by
teo_zero
3y ago
I think this would be valuable if it replaced ALL other tweaks and hacks. According to the docs, it still requires other tools/configurations e.g. to make compose work.
772.
▲
by
teo_zero
3y ago
I don't get this. You define the layer meta_mac but there's no key that uses it...
773.
▲
by
teo_zero
3y ago
I agree on the first paragraph, but the second one applies poorly to strings: char *s = "hello"; "hello" has length 6 because there's a hidden \0 even if I never wrote it in the code.
774.
▲
by
teo_zero
3y ago
Isn't this exactly what the fine article does?
775.
▲
by
teo_zero
3y ago
> this looses much of its power once you start passing these buffers around to functions that do not use these macros. Alas it's even worse: once you pass buffers around to functions, you can't use these macros!
776.
▲
by
teo_zero
3y ago
> The reason to use $$(some-command) instead of the built-in function $(shell some-command) is that the expression will be evaluated every time it is called. [...] When using $(shell ...) the expression gets evaluated only once and
777.
▲
by
teo_zero
3y ago
Could the XY-problem problem be called the (XY)² problem?
778.
▲
by
teo_zero
3y ago
True. No writer can imagine what's beyond the singularity, as no astronomer can look into a black hole. They can only explore "around" it, outside the "events horizon". This is by definition of singularity: if it wa
779.
▲
by
teo_zero
3y ago
> I'm afraid you misread the plot No, I misread Skarupke's algorithm: I completely missed the last comparison. You're right. Now, I wonder if your "overlap" algorithm, but with Skarupke's partitioning schem
780.
▲
by
teo_zero
3y ago
Minutes are ok, but cahotic hours are not easy to read. Can't you place the hours in the conventional order inside (except 12 would be where usually 11 is)? Imagine the moving ring has two sets of marks: 59 to 61 outer ones that align
More ›