Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
foxfluff
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
79 ms
·
721.
▲
by
foxfluff
5y ago
A bicycle will get me to places even when I don't have the battery, or don't have a place or the time to charge it. Now are you going to go down the rabbit hole of arguing about definitions?
722.
▲
by
foxfluff
5y ago
> The idea of e-bikes is to assist the user, on accelerating from a stoplight, on a hill, after a break, in a particularly strong gust of wind. To me, the idea of vehicles is to get me from point A to B faster and with less effort than i
723.
▲
by
foxfluff
5y ago
Otoh there are locations where the share of electrics is much higher. Norway: "In total, 17,323 new passenger plug-in electric cars were registered in June, which is 128% more than a year ago and 84.9% of the total car market!"
724.
▲
by
foxfluff
5y ago
Flying a work gadget sounds way more likely a way to get yourself caught. And lose your job. No, I'd rather risk a $10k toy than risk getting fired. All kinds of exciting things can get people into serious trouble but they still do i
725.
▲
by
foxfluff
5y ago
The point is that there are many many ways to fingerprint even if people spoof their user agent.
726.
▲
by
foxfluff
5y ago
Even if you don't know malloc, you know that it returns void * or foo *. I think most C programmers consider implicit conversion between void * and other object pointers a feature. And yes, it's called an implicit conversion, no
727.
▲
by
foxfluff
5y ago
I know. I've used C for two decades, I write it professionally today. Some bugs end up being extremely difficult to debug. I accept that as a fact of life; in exchange, we get pretty decent performance. Guess what I do when there
728.
▲
by
foxfluff
5y ago
I believe it to be the case that any optimization in conjunction with a non-conforming program can lead to a subtle or hard-to-understand bug, including giving literally the wrong answer. So what is the solution? Disallow optimization,
729.
▲
by
foxfluff
5y ago
N1570 "An iteration statement whose controlling expression is not a constant expression, that performs no input/output operations, does not access volatile objects, and performs no synchronization or atomic operations in its body,
730.
▲
by
foxfluff
5y ago
A lot of people want programs to be optimized instead of naively executing everything as it appears in the source code. Do you think that's acceptable? I think it's easier to define in a standard what's conforming behavior t
731.
▲
by
foxfluff
5y ago
I wonder if it'll ever hit too close to home for Schmidt. https://imgur.com/a/Al7V662 (I guess that in his position it's pretty easy to point out this is news concerning another person.. good luck if you
732.
▲
by
foxfluff
5y ago
> it forces you to read things byte-by-byte rather than lazily assuming you can just read 4 bytes and cast them directly to an int32 Why is this good? How does the extra work make software more robust?
733.
▲
by
foxfluff
5y ago
To what extent does it backfire though? "Would you like the ripoff edition or the inferior edition?" Actually, I don't want to buy the game anymore.
734.
▲
by
foxfluff
5y ago
Brian's choice to use C is perfectly well justified: "I am thinking that we should choose C to implement our PL/0 compiler. Eventually we will want to have this compiler run on many different platforms, including Unix, MS-DOS
735.
▲
by
foxfluff
5y ago
> Well I was replying to a user that said he was not significantly affected by marketing, because he does things like sorting products by "cheapest" and reads the product ingredients. I simply said that those decisions are made
736.
▲
by
foxfluff
5y ago
> What would you consider pricing and placement to be if not marketing? I'm ok with calling it marketing (I don't particularly care). It's just that I don't believe we can have fruitful discussion without first def
737.
▲
by
foxfluff
5y ago
Nerds are uniform grey mass, which is why sweeping generalizations based on anecdata or hand-waved statistics give truly accurate statements :) I know because I'm a nerd.
738.
▲
by
foxfluff
5y ago
It's really hard to have a discussion about this topic without having a scoped definition of marketing for the purpose of discourse, and defining it such that "everything is marketing" isn't very interesting. Everyone k
739.
▲
by
foxfluff
5y ago
> This is why marketing to geeks are like "you are more smart and rational if you buy this product". Can you show examples of that kind of marketing? I just don't remember ever seeing such a thing, and I certainly don
740.
▲
by
foxfluff
5y ago
> You're still being marketed to, and if you're buying stuff, it is working. So you entirely reject the notion that someone might buy stuff for any reason other than marketing?
741.
▲
by
foxfluff
5y ago
Smart human for you, someone obsessed with micro-optimization but lacking knowledge of compiler optimizations for me.. Writing it for human readers can be used to argue for the original implementation if you think of for(i=0;i<expr;i++)
742.
▲
by
foxfluff
5y ago
The compiler can deduce that it is a pure function using the same logic by which it can deduce it is free to replace the call with a builtin: the function is defined in the standard. Everything @skissane said is implementation details and
743.
▲
by
foxfluff
5y ago
It doesn't even need to see __builtin_strlen (try modify your string.h or use musl, which has neither the attribute nor __builtin_strlen). It just needs to see strlen in a hosted environment (with the right header included?). If you
744.
▲
by
foxfluff
5y ago
strlen is a standard function (in a hosted environment). So it must do exactly what the standard says it does, and the standard doesn't say it has side-effects. The compiler could very well use a built-in implementation of strlen, or
745.
▲
by
foxfluff
5y ago
Absolutely. The gist of it: "In the abstract machine, all expressions are evaluated as specified by the semantics. An actual implementation need not evaluate part of an expression if it can deduce that its value is not used and that n
746.
▲
by
foxfluff
5y ago
It's not unreasonable to assume the compiler will optimize it to a single call. Though I guess people who are capable of making that judgement won't need to look this idiom up on the internet.
747.
▲
by
foxfluff
5y ago
This is the first URL I tried: gemini://gemini.circumlunar.space/docs/specification.gmi
748.
▲
by
foxfluff
5y ago
Yes. 92.0a1.
749.
▲
by
foxfluff
5y ago
"No video with supported format and MIME type found." Apparently it's serving zero-byte mp3s?
750.
▲
by
foxfluff
5y ago
It's pretty easy to build a device that connects to the internet without you knowing about it, with all the mobile networks around us..
More ›