Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
friendlydude12
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
friendlydude12
8y ago
I’m not saying that 1<<x is generally meaningless. I’m saying that whenever the shift operand is negative, it’s meaningless. Just like log(x) isn’t generally meaningless, it’s only meaningless when the argument is not positive. Syntac
2.
▲
by
friendlydude12
8y ago
But your formulation isn’t right because it’s not about the UB code being detectable at compile-time or run-time, it’s about describing how the UB code should behave regardless of when it can be analyzed. In the context of real numbers sqrt
3.
▲
by
friendlydude12
8y ago
It doesn’t need to be unable to be precluded at compile-time to be UB. The expression “1 << -3” can be precluded at compile-time, yet it compiles just fine: instead it invokes UB. Doing something at runtime is a different concept from
4.
▲
by
friendlydude12
8y ago
Undefined behavior doesn’t exist to ease portability per se, it exists to handle meaningless yet syntactically valid constructs. Shifting by a negative number is meaningless and is indicative of programming error. Instead of specifying that
5.
▲
by
friendlydude12
8y ago
Agreed, why not attach it to the internal USB bus? Maybe it’s a sourcing / business deal thing. I’m theorizing most laptop manufacturers have made a deal with m.2 pcie wifi producers and not the usb WiFi producers.
6.
▲
by
friendlydude12
8y ago
Inspiring story. My uncle was in prison for most of my childhood, when he got out my dad helped train him for a job in IT. It wasn’t easy since the idea of making money using a skill was so foreign to him. I can’t help but think a program l
7.
▲
by
friendlydude12
8y ago
I wish there were more technical details on kaleidoscope. Just seems like lots and lots of borderline-meaningless high-level overview.
8.
▲
by
friendlydude12
8y ago
That’s my point.
9.
▲
by
friendlydude12
8y ago
How about they all pose a serious threat to privacy?
10.
▲
by
friendlydude12
8y ago
Wasn’t sure which direction he was going in but now I see. That’s incredible satire. Thumbs up.
11.
▲
by
friendlydude12
8y ago
Yeah the “fake news” narrative only serves the large media corporations that want to maintain their monopoly on content. Over time more news sources, including “fake” ones, will actually improve culture and society.
12.
▲
by
friendlydude12
8y ago
Yeah it’s completely untrue. There were lots of very powerful weapons available in those days that rival today’s assault weaponry (even from medieval times) and the 2nd amendment makes no mention of that. The 2nd amendment is a principle, n
13.
▲
by
friendlydude12
8y ago
Never made that claim but thanks for the info.
14.
▲
by
friendlydude12
8y ago
The first amendment isn’t intended for physical speech. It exists to protect opinions and ideas. It’s for this reason lots of non-verbal “speech” is protected under the first amendment, like online posts and flag burning. Threatening violen
15.
▲
by
friendlydude12
8y ago
And they are totally wrong because there were all sorts of machine guns and powerful cannons available in those days, even some used in the Revolutionary war. Projectile weapons have been improving throughout history, it’s silly to assume t
16.
▲
by
friendlydude12
8y ago
The Founders had more foresight than you think. These were enlightenment thinkers who were well versed in the history of governments and technological progress. The Bill of Rights is a document of principles: principles exist to ensure stab
17.
▲
by
friendlydude12
8y ago
It’s not clear that throwing money at the problem will fix it. I don’t know if critical thinking is even really taught in school.
18.
▲
by
friendlydude12
8y ago
Being able to physically run your mouth in public has little to do with free speech, including shouting fire in a movie theatre. Free speech is the ability to express any opinion or idea , anti-government opinions included. This is why o
19.
▲
by
friendlydude12
8y ago
The market isn’t static, it’s dynamic. The plethora of news sources will over time force consumers to think more critically about their information, since there is an inherent desire to not be a fool. The current situation is a temporary ch
20.
▲
by
friendlydude12
8y ago
I think a big problem with metadata-aware “file systems” is that the metadata is lost once the file is exported out of the system. This is a problem with ID3 tags for instance. Another problem is where you make the compromise in the no-mans
21.
▲
by
friendlydude12
8y ago
What did I just read?
22.
▲
by
friendlydude12
9y ago
Desperate for book sales.
23.
▲
by
friendlydude12
9y ago
The same terminology being used for distinct concepts is indeed a potential source of confusion. If you were to say “this is a constant time algorithm” I would need more information to clarify what you meant, rendering the original term les
24.
▲
by
friendlydude12
9y ago
No. I’ve known about timing attacks for as long as I can remember. In any case, any specific individual’s familiarity with timing attacks doesn’t change the fact that using the term “constant time” to refer to time complexity is far more co
25.
▲
by
friendlydude12
9y ago
There exists a constant, K, such that T(n) < K always holds true regardless of the input length. K is proportional to the length of the constant string “secret” and has no dependence on the input. Thus, matches_secret is O(1). Furthermor
26.
▲
by
friendlydude12
9y ago
There is in fact a distinction between the two usages. I can show it with a simple counter example: def matches_secret(a): return a == “secret” The execution time of matches_secret is bounded by a constant and the variation
27.
▲
by
friendlydude12
9y ago
It also refers to time complexity: https://en.wikipedia.org/wiki/Time_complexity#Constant_time this predates the crypto jargon.
28.
▲
by
friendlydude12
9y ago
Oh really? Please explain to me how that is relevant to the point being made in this thread. https://en.wikipedia.org/wiki/Time_complexity#Constant_time
29.
▲
by
friendlydude12
9y ago
Sure, if APIs existed within a vacuum. In the real world we have to worry about ease of packaging, ease of maintenance, and various other practical costs.
30.
▲
by
friendlydude12
9y ago
Thanks, I went to college too and was fully aware of the formal definition of O() notation. That doesn’t change the fact that colloquially it’s far more common to use the phrase “constant time” when referring to time complexity rather than
More ›