Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ynfnehf
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
ynfnehf
2y ago
First place I read about this idea (specifically newlines, not in general trusting trust) was day 42 in https://www.sigbus.info/how-i-wrote-a-self-hosting-c-compile... "For example, my compiler interprets "\n"
2.
▲
by
ynfnehf
4y ago
I used the pyautogui library on Linux. Then just a simple loop with an incrementing angle, with some overshoot in the end in order for the webpage to recognize that the circle was complete. First time using the library, worked pretty well,
3.
▲
by
ynfnehf
4y ago
By cheating with a Python script to move the mouse, I managed to get 99.9%. Seems difficult to get higher than that, perhaps due to the mouse position having integer coordinates.
4.
▲
by
ynfnehf
4y ago
But almost no company complies with the law anyways. They need to have a "reject all" button; a "more options" button is not enough. So any company that has a cookie banner without a "reject all" option might a
5.
▲
by
ynfnehf
4y ago
What is the point in implementing a cookie banner if you are still breaking the law in an obvious way? Why not just break the law by not having a cookie banner? That way it would at least be less annoying for your users.
6.
▲
by
ynfnehf
4y ago
Another fun one: struct { long unsigned a : 31; } t = { 1 }; What is t.a > -1? What about if a is instead a bit-field of width 32? (Assuming the same platform as in the quiz.)
7.
▲
by
ynfnehf
4y ago
ANSI describes why in their rationale: https://www.lysator.liu.se/c/rat/c2.html#3-2-1 . The unsigned preserving rules greatly increase the number of situations where unsigned int confronts signed int to yiel
8.
▲
by
ynfnehf
4y ago
At least it is still optional to allow for stack allocated VLAs. Which is the attack vector you mentioned.
9.
▲
by
ynfnehf
4y ago
This usage of VLAs is once again mandatory for compilers to support, since C23. From Wikipedia: "Variably-modified types (but not VLAs which are automatic variables allocated on the stack) become a mandatory feature".
10.
▲
by
ynfnehf
4y ago
I once implemented FizzBuzz using this trick https://www.reddit.com/r/C_Programming/comments/qqazh8/fizzb...
11.
▲
by
ynfnehf
4y ago
I am Swedish and very much enjoy the meatballs at IKEA. They do not taste significantly worse than homemade or those from a fancy restaurant. Just as a counterpoint to all the negativity in here. (To be honest, I have never had a bad meatba
12.
▲
by
ynfnehf
4y ago
Yeah, I didn't mean open access as an insult. I just included it for description. Sorry for the confusion. I have published open access before, so I would be equally guilty in that case.
13.
▲
by
ynfnehf
4y ago
I recognize most of the names of the authors. Thus I am not very surprised about their conclusions. Nothing is actually new in this article. It is mostly incoherent writing, with some conspiracy theories thrown in. The usual stuff that has
14.
▲
by
ynfnehf
5y ago
For each specific fusion reaction there is an optimal temperature (for maximum reactivity). Usually around a billion kelvin or so, plus or minus a few orders of magnitude.
15.
▲
by
ynfnehf
5y ago
So you think it is reasonable to spread what is essentially a conspiracy theory? Why should I not trust a public library that it is difficult to find a replacement for a Russian-speaker willing to read stories for children?
16.
▲
by
ynfnehf
5y ago
The cancelling of Russian-language reading hours in Sweden was not due to the war. That was fake news. Please be more careful about spreading misinformation in the future.
17.
▲
by
ynfnehf
5y ago
How is that any different than reversing the English digraphs? "th", "ch", "wh", etc. Reversing English doesn't usually produce something meaningful either.
18.
▲
by
ynfnehf
5y ago
Note that it has been the choice of Sweden and Finland not to be a part of NATO. NATO would be more than happy to let them join, and the process would probably be quite quick as well. I think this is quite a significant difference from the
19.
▲
by
ynfnehf
5y ago
The former Secretary General of NATO disagrees with you. For Sweden and Finland at least. Source in Finnish, but google translates it pretty well https://yle.fi/uutiset/3-12268949 https://yle-fi.translate.go
20.
▲
by
ynfnehf
5y ago
You can train an AI to do the inverse of the existing program (as is the case for the self-driving described in the article.) Take some input, generate output using the existing program, and then train the AI with the input/output reve
21.
▲
by
ynfnehf
5y ago
49% of infected having symptoms a year later is ridiculous and obviously not true. Unless you define symptoms extremely broadly. I have not read the study you are referring to. Are you sure it is not specifically about hospitalized patients
22.
▲
by
ynfnehf
5y ago
Those specific quotes (or rather direct translations of quotes) were said in regards to bad integration policy (by Stefan Löfven in 2015 and 2019). There has probably been said things with similar sentiment in regards to the pandemic. But n
23.
▲
by
ynfnehf
5y ago
Your math is off by an order of magnitude. 40Gbps/100Mbps=400. It should also be able to handle at least 4000 customers (10x) through oversubscrpition.
24.
▲
by
ynfnehf
5y ago
Calling another virus infection flu isn't actually wrong anyways. The word has been used that way for centuries before we actually were able to identify the virus.
25.
▲
by
ynfnehf
5y ago
Sure, which means that they were greatly affected by the war. Thus, according to you, they should not have been able to create a successful welfare state.
26.
▲
by
ynfnehf
5y ago
You don't actually need two arrays to implement your idea. Since the combined size will be constant, just one array with an index indicating the split is enough. When moving cards from one side to the other a lot of elements will have
27.
▲
by
ynfnehf
5y ago
> I'm still sceptical if there even exists a successful welfare state that does not rely on natural resources, or the aftermath of some war. I was referring to this. Both Denmark and Finland were to a large extent involved in WW2, a
28.
▲
by
ynfnehf
5y ago
What is your explanation for Denmark and Finland then?
29.
▲
by
ynfnehf
5y ago
The _t suffix is also reserved by posix. (And by the C standard if the name starts with int or unit.) I agree with just using struct foo, as does the Linux style guide. (Edit: I just noticed the page mentions this, but it is perhaps useful
30.
▲
by
ynfnehf
5y ago
Cases are not the same thing as infections. Comparing cases between countries doesn't work, even when corrected for positivity rate. Deaths should be a more fair comparison. Then there are a lot more countries with higher death rate. I
More ›