Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
teo_zero
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
271.
▲
by
teo_zero
1y ago
From TFA: > Everyone had their own pretty-printing settings for viewing [DIANA] however they wanted.
272.
▲
by
teo_zero
1y ago
For a keyboard that aims to the title of "Scientific", isn't it weird to offer the "zero" key after the "9" instead of its natural (mathematically speaking) position before the "1"?
273.
▲
by
teo_zero
1y ago
Reading through the comments in this thread, it looks like the population is split in two groups. The first group considers "bookmarks" as a directory of often-visited sites, and needs a way to avoid typing their URLs every time.
274.
▲
by
teo_zero
1y ago
In what scenario would this be useful? If foo() takes a struct A, it should be more generic and have no knowledge about the more specialized struct B.
275.
▲
by
teo_zero
1y ago
> Object oriented programming implies certain contracts that the compiler enforces Sorry, but where did you got this definition from? I've always thought OOP as a way of organizing your data and your code, sometimes supported by lan
276.
▲
by
teo_zero
1y ago
Isn't it exactly the same thing? If a:b=c:d then a:c=b:d.
277.
▲
by
teo_zero
1y ago
m3=m5=m7=1 for ... ... m3 = m3==2?0:m3+1 m5 = m5==4?0:m5+1 m7 = m7==6?0:m7+1
278.
▲
by
teo_zero
1y ago
Haha. Except in Arabic numbers are written as in English.
279.
▲
by
teo_zero
1y ago
And we don't need navigation systems on our cars because we should know where we're going, right? ;) Jokes apart, I think you're being too drastic. A good auto-complete is a nice feature, just like auto-indent, tab-complete,
280.
▲
by
teo_zero
1y ago
> reverse assignment statements to capture the results Interesting idea! However, I'm not sure I would prefer "Mix water, flour [...] and finally you'll get a pie" to "To make a pie: mix water, flour [...]"
281.
▲
by
teo_zero
1y ago
I can count multiple reasons why someone might dislike significant whitespace. The most evident is that whitespace is... not evident at all! By definition, it's a transparent character: it's extremely difficult to directly count
282.
▲
by
teo_zero
1y ago
I'm wondering what the gain would be if we considered "white space" every char <= 0x20. I know it's changing the rules of the game, but who would want to count the words in a text full of control characters?
283.
▲
by
teo_zero
1y ago
I don't get it. Isn't this exactly how the well-known formula is constructed? (With the example crafted to have integers, even solutions and a=1 so to conveniently hand-wave the last division.) > Normally, when we do a factor
284.
▲
by
teo_zero
1y ago
I'm not here to defend zero- terminated strings, but I register that prefixed strings would be equally bad for the goal of OP, or even worse since you would need to inject int prefixes instead of zero bytes.
285.
▲
by
teo_zero
1y ago
Clever, but it misses the very goal of option/maybe types: forcing the user to check the result. In this implementation nothing stops the user from omitting the "if (p.ok)" part and directly using "p.value". It coul
286.
▲
by
teo_zero
1y ago
How strange! I was about to add a comment that I would probably stick to SSE2 or something like that to be sure my code suits as large an audience as possible, including CPUs from more than 10 years ago, ARM, etc. Case in point: I've b
287.
▲
by
teo_zero
1y ago
Aren't firewall rules part of the "configuration" the OP talked about?
288.
▲
by
teo_zero
1y ago
I think the parent poster meant that a compiler might have a hard time understanding when sa_get(..., i) and sa_get(..., i+1) actually access contiguous memory locations, and will thus stop applying nice optimizations. Conversely, accessing
289.
▲
by
teo_zero
1y ago
I don't know Python so well as to propose any meaningful contribution, but it seems to me that most issues would be mitigated by a sort of "final" statement or qualifier, that prohibits any further changes to the underlying d
290.
▲
by
teo_zero
1y ago
Neither TFA nor any comment mention using a struct of arrays instead of an array of structs. This technique alone eliminates all padding bytes!
291.
▲
by
teo_zero
1y ago
> Later version allowed to scan from arbitrary position by mirroring first bucket as last. I don't think this would help. The real issue with arbitrary position is that you can't load 16 bye to a 128-bit SIMD register if the me
292.
▲
by
teo_zero
1y ago
> the current Linux Kernel 6.15 already supports many commercial laptops: Lenovo Yoga 7x, Lenovo ThinkPad T14s Gen 6, Dell XPS 13, Asus Vivobook S15, HP Omnibook x14, Microsoft Surface 13/15 Has anybody had any first-hand expe
293.
▲
by
teo_zero
1y ago
I agree, but the current specification is complex too: two identical "tagged" structs are compatible, two identical "untagged" structs are not. And before C23 it was even worse, depending on whether the two structs were
294.
▲
by
teo_zero
1y ago
Sorry, I don't understand what macro you're referring to. Your post addressed "vec(int)", and suggested it will fail if repeated, which was true before C23 but not anymore. What functions are defined through vec(int)?
295.
▲
by
teo_zero
1y ago
Not with C23.
296.
▲
by
teo_zero
1y ago
You don't need an explicit allocator: you can create an empty object and vec_push() does the magic of (re)allocating the memory when needed. Instead, what is missing is an automatic deallocator, one that's automatically called whe
297.
▲
by
teo_zero
1y ago
Correct, complex types must be typedef'd. At least, until c2y integrates _Record as per N3332: https://thephd.dev/_vendor/future_cxx/papers/C%20-%20_Record...
298.
▲
by
teo_zero
1y ago
Why do you need to pass the type to vec_push? Can't T be replaced by typeof(v->data[0]) ?
299.
▲
by
teo_zero
1y ago
It was not my intention to make you sad or angry. I assure you that I have nothing against who uses a different coding style than mine. But consider that, just like you, I too have the right to tell the world what my preference is. Should I
300.
▲
by
teo_zero
1y ago
Change grab("n" ... map("n" ... to grab("Tab" ... map("Tab" ...
More ›