Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
themulticaster
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
themulticaster
5y ago
Could you give some examples where the same value needs to be used in integer and floating-point math? I'm not quite sure if I understood you correctly, but in case you propose that integer <-> float conversion should happen im
92.
▲
by
themulticaster
5y ago
I agree, but a little nitpick: A sequence of bytes does not have a defined endianness. Only groups of more than one bytes (i.e. half words, words, double words or whatever you want to call them) have an endianness. In practice, most project
93.
▲
by
themulticaster
5y ago
Sorry for being unclear. My point is that the example in the blog post does two things, a) it reads an unaligned address causing UB and b) it performs byte-order swapping. The post then goes on about avoiding UB in part b), but all the time
94.
▲
by
themulticaster
5y ago
Thanks, I just noticed a small mistake in my example (I don't trigger the UB because I access b[0] containing 0x80 without shifting, however I meant to do it the other way around). Still, adding an explicit cast to the left operand see
95.
▲
by
themulticaster
5y ago
This has nothing to do with C++ because your example only hides the real issue occurring in the blog post example: The unaligned read on the array. Try adding something like printf("%08x\n", *((uint32_t*)(b))); to your exam
96.
▲
by
themulticaster
5y ago
The first example in the article is flawed (or at least misleading). 1) They define a char array (which defaults to signed char, as mentioned in the post), including the value 0x80 which can't be represented in char, resulting in a com
97.
▲
by
themulticaster
5y ago
This was mentioned somewhere else already, but the way to parse [Windows Subsystem for Linux] is [Windows] [Subsystem for Linux] (not [Windows Subsystem] [for Linux]). In case of [Rust for Windows], it should actually be called something li
98.
▲
by
themulticaster
5y ago
IANAL and I am not too familiar with the US constitution, but the paragraph you mentioned seems to have a very clear intention: To forbid the individual states from a) performing diplomacy/foreign policy on their own and b) creating th
99.
▲
by
themulticaster
5y ago
This was my reaction as well. I haven't used Process Monitor/Process Explorer for a while, are they bringing anything to the table that's not covered by htop? With htop, I can even start tracing a process (using strace) or li
100.
▲
by
themulticaster
5y ago
While I see your point of misusing children to evoke an emotional response, I think this is an exception: 1) School is a mandatory part of life for every child, therefore increased scrutiny and high standards are warranted. As an adult, you
101.
▲
by
themulticaster
5y ago
I think the apparent increase in Verilog popularity is due to pretty much all FOSS toolchains (i.e. mostly Yosys) only supporting Verilog [1], so most of the content publicly visible on blogs etc. uses Verilog. And I guess the reason that m
102.
▲
by
themulticaster
5y ago
This project actually uses Yosys. From a quick glance at the code, this tool essentially uses Yosys for the heavy-duty logic stuff [1], resulting in a JSON-based logic definition using a couple of standard cells (DFF, MUX, arithmetic, etc.)
103.
▲
by
themulticaster
5y ago
On the other hand, there's strcmp()/strncmp(). I can never wrap my head around the fact that strcmp(s1, s2) == 0 (or even better, !strcmp(s1, s2)) means s1 is equal to s2.
104.
▲
by
themulticaster
5y ago
Do you mean as in "If the washing machine has a Wash setting, what does it do if it is not set to Wash?"
105.
▲
by
themulticaster
5y ago
I can add two more examples: Italian pharmacies (at least all that I've seen) use a green cross, while German pharmacies use a stylized A letter. Wikipedia has a couple of symbols if you're curious: https://en.wikipedia
106.
▲
by
themulticaster
5y ago
I'd say that's a very valid argument in principle. If you want to start contributing to the Linux kernel, you'll have to start somewhere - but you can't start refactoring entire subsystems, rather you'll start with
107.
▲
by
themulticaster
5y ago
Oh my, your post reads like a bureaucracy horror story, but I fear it is not a work of fiction! Regarding client-side restrictions: I doubt I'll ever understand why many organizations appear to be so focused on restricting their employ
108.
▲
by
themulticaster
5y ago
> If the experience of the procuring department is that "BSI finds everything is insecure", then you procure without letting BSI know or have a say in it, and then you look good for getting the procurement completed. Sounds pla
109.
▲
by
themulticaster
5y ago
On the other hand, employers often work around the restrictions on termination by employing people on a fixed-term employment contract ("befristeter Arbeitsvertrag") and then extending the employment period again and again [1]. In
110.
▲
by
themulticaster
5y ago
Well, the original title policy really is an official HN rule. On the other hand, I totally agree that titles consisting only of ObscureName are not very informative. From the current front page: 1. "Bernie Madoff Dies in Prison"
111.
▲
by
themulticaster
5y ago
But why would you want to have that? Simply put, with wireless you are trading the convenience of having no cables for essentially everything : Wired has better throughput, lower latency, lower bit-error rates resulting in less retransmiss
112.
▲
by
themulticaster
5y ago
Exactly. I have a suspicion that a large part of people complaining about "Internet issues" are faced with WiFi issues. Apparently many struggle with the concept of separate links that make up a connection (LAN vs WAN). But the re
113.
▲
by
themulticaster
5y ago
Now that you mention Tartine, I remember reading about them previously. The books are quite interesting. Regarding sourdough sourness: Sourdough bread doesn't have to be very sour. Certain parameters influence the perceived sourness, a
114.
▲
by
themulticaster
5y ago
Hmm, that's a difficult question for me because I learnt using some books by a blogger called Lutz Geißler [1], but I'm afraid they're written in German and there's no translated version. I haven't yet found any res
115.
▲
by
themulticaster
5y ago
Are you referring to the lactic acid bacteria species Lactobacillus sanfranciscensis [1] that commonly occurs in sourdough? In that case: This species, while initially named after its historical occurence in sourdough bread around San Fra
116.
▲
by
themulticaster
5y ago
Could you explain how craft baking is miles ahead in Oregon? I'm quite curious because I started baking at home recently. Just for fun, I tried comparing perceptions and expectations about what people consider "good bread" in
117.
▲
by
themulticaster
6y ago
By the way: If you are looking for relatives of typical LaTeX serif fonts such as Latin Modern, Computer Modern and friends, the keyword is "Century", e.g. Century Schoolbook. The latter is associated with documents produced by th
118.
▲
by
themulticaster
6y ago
Essentially, the argument made by Butterick and others is that choosing Arial as a font is not a choice but indicates the absence of a choice, since it is a system font. [1] At the very end of that page he writes a few paragraphs exactly wh
119.
▲
by
themulticaster
6y ago
I just created an account to tell you my guess: The timeline to the right of the post shows "Mar 20", for the 20th of March (2021). I think some moderator misunderstood that as March of 2020 and changed the title.