Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
trealira
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
421.
▲
Bottom up Red/Black Trees: The simplicity of LLRB Trees with none of the penalty
(maxgcoding.com)
3 points
by
trealira
2y ago
|
1 comments
422.
▲
by
trealira
2y ago
This seems like a good explanation of an alternative implementation of red-black trees to the standard CRLS one. This blog actually has a lot of, in my opinion, interesting posts about data structures and algorithms, and many of those are a
423.
▲
The Complex Case of TikTok in the United States (January 2024)
(thecgo.org)
1 points
by
trealira
3y ago
|
0 comments
424.
▲
by
trealira
3y ago
I was expecting some ancient Greek algorithms that used stacks or priority queues, haha.
425.
▲
by
trealira
3y ago
Why do companies do that? Shouldn't it be enough that you have experience contributing to a large project long-term and you can program decently? Is it that modern programming just requires different/additional programming skills
426.
▲
by
trealira
3y ago
Likely you know this, and you're just being funny, but the try/catch statement is more like setjmp/longjmp in C. The Result type in Rust is syntactic sugar for integer return codes, returning early on errors, and tagged union
427.
▲
by
trealira
3y ago
It's on Android, but they meant that it's not on the Play store. They brought Fortnite up as an example of a popular app not available through the Play store. They don't want this to happen to iPhone apps in the future; they&
428.
▲
by
trealira
3y ago
I may be dense, but I don't see how Fig fits into the analogy of the five monkeys getting sprayed by icy water.
429.
▲
by
trealira
3y ago
It seems like it would be more practical to create non-zero integer/other number types, and only those can be used as denominators. But it would also be nice to not have to make a custom subtype every time you needed something with a s
430.
▲
by
trealira
3y ago
You could say the same thing about variables, expressions, statements, and structured programming. It's a lot higher level than assembly language or machine code programming. > Registers, addresses, and machine instructions are rea
431.
▲
by
trealira
3y ago
> Why is this taken as a given to be a good thing? So that we can prove things about software more easily. If we only write stateful imperative programs, we're stuck with tons of Hoare triples and separation logic rather than being
432.
▲
by
trealira
3y ago
Yeah, a lot of people who developed important technologies (TCP/IP: Vinton Cerf and Bob Kahn; Unix: Dennis Ritchie, Ken Thompson) were born in the 1940s. My grandmother is in the same age range, but barely knows how to use a cell phone
433.
▲
by
trealira
3y ago
They do keep runtime array indexing checks on. I'm pretty sure I remember reading a comment from Steve Klabnik on here that they only turned off overflow checks in release builds by default because array range checks stay on. With neit
434.
▲
"If anyone wants to know why every tech company is clamoring for AI.."
(phantomrose96.tumblr.com)
5 points
by
trealira
3y ago
|
0 comments
435.
▲
by
trealira
3y ago
Maybe to appeal to C and C++ developers. Rust makes its syntax superficially similar to C/C++ syntax in many other ways: pointer/reference syntax, declaration of "struct" types, generic types using <T>, curly brace
436.
▲
by
trealira
3y ago
That looks like a pretty cool game! Were you inspired by Crypt of the Necrodancer? That's one of my favorite games. I was thinking about whether an NES (or another older console) would have been able to handle a game with those mechani
437.
▲
by
trealira
3y ago
> I could write something in C99 and, in 10 years, it will likely still compile without changes! Can we say this about Java, C#, D.. and ESPECIALLY Rust??? I think you could say this about Java. The others, I'm unsure about.
438.
▲
by
trealira
3y ago
> Maybe I should kick them out of the house, but that gets a lot of resistance and feels like punishment to them. This is what my grandparents did to my mom and aunts and uncles when they were growing up during the 60s and 70s. They were
439.
▲
by
trealira
3y ago
Those languages have safe interfaces (the programming languages themselves) over a runtime that has to use unsafe code at some point (e.g. to write the garbage collector). If that's not memory safe, then Rust wouldn't be considere
440.
▲
by
trealira
3y ago
Dynamic scope means you that whoever last bound the variable at runtime determines its value, not whichever outer scope surrounds it. I guess it would be something like this in pseudo code: var dynamic = 5 function foo() { print(
441.
▲
by
trealira
3y ago
Thanks for this response as well. I didn't see it earlier. It seems pretty interesting what you can do with C++ templates.
442.
▲
by
trealira
3y ago
That makes a lot of sense, thanks. I hadn't even thought about that. I guess you could also have MultiplicationExpression have an implicit coercion operator so you can use it in places where a matrix is expected, which would just compu
443.
▲
by
trealira
3y ago
How can you? Genuinely asking. You can overload operator + or operator *, but how could you make a dedicated ternary (three-way) operator that combines those two operations into something like std::fma? I guess you could overload the functi
444.
▲
by
trealira
3y ago
Yes, I think you're right. When I eat something that's too spicy for me, I can't taste anything. My tongue is numb and feels like it's burning. It doesn't even have to get to the level of screaming for water; I can
445.
▲
by
trealira
3y ago
> Presumably any other language that can run on a virtual machine, like WASM, is also to be included! Exciting days ahead :) C can be compiled to WASM, and it's not a memory safe language, so this can't be true...
446.
▲
by
trealira
3y ago
For convenience's sake, these are the links to the RFI and the ISO C++ Direction Group's response: https://www.federalregister.gov/documents/2023/08/10/2023-17... https://www.regulat
447.
▲
by
trealira
3y ago
China's climate change policies are largely about adaptation to climate change, not just mitigation or prevention[0] From the article on China's adaptation policies: > As Freymann details, these efforts include “constructing th
448.
▲
by
trealira
3y ago
In theory (but only possible in assembly right now), there could be coroutines that shared the stack of their caller. As long as the caller (who's calling from a normal function) finishes calling the coroutine and doesn't expect t
449.
▲
by
trealira
3y ago
> If only there's some company with money and clout to offer an OS with the same level of user-friendliness... Legit question: do you think there will ever be a new commercial desktop operating system (not one that's given away
450.
▲
by
trealira
3y ago
I didn't know what the Active Directory is until now, although I found its Wikipedia page. Is it known for being insecure?
More ›