Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
unwind
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
55 ms
·
871.
▲
by
unwind
4y ago
Is it correct to assume that "The Batwing" is a reference to the Motorola M-logo [1]? Might not be obvious to all so worth asking. :) [1]: https://www.google.com/search?q=motorola+logo
872.
▲
by
unwind
4y ago
I agree, I think it's strange to make the instruction encoding influence whether or not a part is to be considered 32-bit. Instead I think the programmer's model is what determines that (which would make these ARM cores firmly 32-
873.
▲
by
unwind
4y ago
This bears repeating every once in a while: surface-mount soldering is not very hard . It's perhaps harder than through-hole, since you don't get the benefit of having the component held mechanically, but not by a lot. The actual
874.
▲
by
unwind
4y ago
Uh, isn't using `memcpy()` to copy strings doing exactly that? The problem is that `memcpy()` doesn't know about (of course) string terminators, so you have to do a separate call to `strlen()` to figure out the length, thus visiti
875.
▲
by
unwind
4y ago
Yes it should be read as a placeholder for whatever you need to do. Could be an array inside a struct too for instance, that is quite common.
876.
▲
by
unwind
4y ago
No, it's fine. The name of an array decays to a pointer to the first element in various contexts. You could do `&data[0]` but it means exactly the same thing and would read as over-complicated things to C programmers.
877.
▲
by
unwind
4y ago
This looks decent, but I'm (highly) opposed to recommending `strncpy()` as a fix for `strcpy()` lacking bounds-checking. That's not what it's for, it's weird and should be considered as obosolete as `gets()` in my opinio
878.
▲
by
unwind
4y ago
According to my quick search, the area of Germany is 3.6% of the US'. It's many things, including big.
879.
▲
by
unwind
4y ago
I think you meant "microcontroller", the Pi 4B for instance is powered by a 64-bit quad-core ARM A72 running at 1.5 GHz. That is most certainly what most people would call a (rather beefy) microprocessor.
880.
▲
by
unwind
4y ago
I think that in when using a fixed-width font in a text-only editing program, the assumption is that a tab is "made" (visually) of a number of spaces. That number is a frequent ... debatable setting, in software development teams,
881.
▲
by
unwind
4y ago
Okay, great. That totally makes sense, but on the other hand Mr Blow seems to have some rather unusual ideas regarding how to develop this new language ( and is a game developer, which sometimes brings its own set of secrecy-first ideas [1
882.
▲
by
unwind
4y ago
As someone who is aware of jai but not at all following the development, do the terms of the closed beta the OP is in permit code to be shown? I guess "yes", it seems so pointless otherwise. Would be very interesting to see e.g. &
883.
▲
by
unwind
4y ago
I blame Stack Overflow for conditioning me into seeing more of the possible ways things could break, when it comes to C code. :)
884.
▲
by
unwind
4y ago
If anyone reading this and feels uncertain on how this is done, DON'T do this: snprintf(dest, sizeof dest, source); // BAD code do not repeat that looks great at first sight, just another size-checked way of copy
885.
▲
by
unwind
4y ago
Maybe something like this: [1]. It looks ... expensive. [1]: https://amcm.com/machines/amcm-m4k
886.
▲
by
unwind
4y ago
The vast majority of my answers are in C. Not sure how to filter out and count them, though. Fun if you have! :)
887.
▲
by
unwind
4y ago
That was weird. Makes sense once you know about NaN's incomparability, but still surprising. I had to try it in Python (3.10.4, Windows on x86), it worked fine: >>> import math >>> a={math.nan: 1} >&g
888.
▲
by
unwind
4y ago
Thanks! :)
889.
▲
by
unwind
4y ago
Not sure if it counts as building something concrete (I have been programming commercially for ~20 years so I'm pretty sure there's something if I dig) but does Stack Overflow impact count? I have over 6,000 answers posted and a c
890.
▲
by
unwind
4y ago
Well, isn't that by definition true for any system of measurements? I mean, as long as we're talking about a simple straight-line distance in some real-dimensional space, it's going to be possible to measure that distance in
891.
▲
by
unwind
4y ago
They most certainly chart in Sweden, here's the chart from May 14th (the day after the the Eurovision finals) [1]. This is "Svensktoppen", a very long-running list of top-played Swedish songs in Swedish radio. Off the top of
892.
▲
by
unwind
4y ago
I agree (scrolling to "immerse the reader" is unnecessary, let your content speak), but it would be equally annoying to have a site about a new scrolling library refuse to use it. That would be like all those news articles that
893.
▲
by
unwind
4y ago
Very nice fix! This was also the first time I learned about the Toybox 3d printer, which seems ... both interesting and kind of annoying, at the same time. I don't own a 3D printer, but I've been reading Make and generally kind of
894.
▲
by
unwind
4y ago
As a non-business outsider it's even weirder than that, since Gmail is free for regular "consumer" use. It's as if Ford gave away ad-plastered pedal cars for free, but if you pay them for a business car they give you a p
895.
▲
by
unwind
4y ago
In Spain, there is even a proverb that goes like 'being cold like a Swede'. TIL! As a (straight, late middle-age, male) Swedish person this is kind of hilarious! :) Couldn't find a reference after some mild searching, but I
896.
▲
by
unwind
4y ago
I should not be allowed into the same room as crypto development, and have certainly never tried to "attack" a crypto algorithm. Still, reading that, against 22.5 (of 24) rounds of the Gimli computation, the attack is claimed to n
897.
▲
by
unwind
4y ago
Like most things in life if you are patient in learning it and respect the limits it is entirely safe. Hey, just like C programming! :) On a slightly more serious note, the point seems to be that people are not, and that can get them kill
898.
▲
by
unwind
4y ago
There are rather big excavators/shovels as used in mining operations, for large-volume material handling, that are powered by a tether. I guess they don't nimble around much but rather stay in roughly the same spot, filling trucks
899.
▲
by
unwind
4y ago
Marie Kondo [1] is a Japanese organizing (not organization) consultant, author and tv presenter. She is known for (rather intense) minimalism, and the saying "does it spark joy?" which you are supposed to use to filter out what th
900.
▲
by
unwind
4y ago
Huh? Modern OSes will of course free the memory (as well as any other resources) when the process exits. If you know your program has limited runtime you can treat standard heap allocation functions like an over-engineered arena allocator.
More ›