Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Ygg2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
691.
▲
by
Ygg2
1y ago
Actually some lifts don't start with G but -2, because basement exists.
692.
▲
by
Ygg2
1y ago
> adding/subtracting by 1 is a billion times easier to understand than adding/subtracting 42. Ok, then add start your indices with something else 1 or 2, -1 would be best but probably not well supported. Whatever you aren'
693.
▲
by
Ygg2
1y ago
Wow, the Linux kernel must be full of dunces that rather than writing in proven correct C, added another language that other maintainers hate. What morons! /sarcasm Disclaimer: above is sarcasm, while I don't think Linux Kernel Ma
694.
▲
by
Ygg2
1y ago
> the people actually working on it has opinions about the work they're doing No. They have opinions and take actions to subvert related work. See people literally stopping a presentation to gripe about Rust cultists, or Hellwig thr
695.
▲
by
Ygg2
1y ago
Because it worked out so well for Rust in Linux? Linux issues are not purely technical. There is the social inertia.
696.
▲
by
Ygg2
1y ago
I'm using OnlyOffice and it's pretty great. Definitely better than LibreOffice.
697.
▲
by
Ygg2
1y ago
Eh. It will work with your code but at some point your dependencies will have to dive into unsafe (e.g. calling C libs/kernel, SIMD, ASM by hand, etc.). Minimize unsafe, auditing libs with Geiger, and minimizing outside dependencies to
698.
▲
by
Ygg2
1y ago
> Oh wait, doesn't this invalidate your argument? Not really. If you can't be perfect, at least be good. Unless you want to make an argument that searching all of your code base for UB is better than running on a relatively sm
699.
▲
by
Ygg2
1y ago
Counterargument Counterargument: one would think 35 years is enough to work out the memory safety kinks. If C people can't sort it, a new solution needs to be used. Not necessarily Rust, but something memory safe. Perhaps Java (if main
700.
▲
by
Ygg2
1y ago
Nonsense, the C guy told me those happen to people that make mistakes, and that he, being the offspring of the Elemental of Logic, and "Hyperspace cybernetic intelligence and juvenile delinquent John Carmack" is completely immune
701.
▲
by
Ygg2
1y ago
No. But you need to see with eyes of a newbie. I mean what is the problem here, you did say it's just adding or subtracting a number whether it's 0, 1, -1 or 42? Should be trivial, right? My guess while the change of indices is si
702.
▲
by
Ygg2
1y ago
Hissssss!
703.
▲
by
Ygg2
1y ago
> Also, there’s a huge difference between beginners not understanding 0-based indexing and experienced C++ engineers describing the challenges understanding Rust’s unique features Keep in mind I wasn't new to programming at that poi
704.
▲
by
Ygg2
1y ago
I see. Luckily mobile phone cut `.contains(&c)` perfectly. And you see scrollbars only when you click the text.
705.
▲
by
Ygg2
1y ago
> Any developer can see that the following two snippets are (supposed to be) equivalent Being how I fall under any developer, I'm going to bite the bullet and ask: How are they supposed to be equivalent? One is a HashSet, other is b
706.
▲
by
Ygg2
1y ago
> But computers are not actually counting array elements Sure. But from most general to least general, it goes: Counting on fingers >>>> Math Equations >> Computer algorithms The more general ones influence the less gen
707.
▲
by
Ygg2
1y ago
> "gradual memory management" is the holy grail I don't think gradual types are as holy grail as you make them out to be. In gradual typing, if I recall correctly, there was a large overhead when communicating between type
708.
▲
by
Ygg2
1y ago
> Given most languages since at least C have 0-based indexing. As I mentioned I started Basic on C64, and schools curriculum was in Pascal. I didn't learn about C until I got to college. > One is "mentally add/subtract
709.
▲
by
Ygg2
1y ago
How it actually went: https://youtu.be/_2C2CNmK7dQ?feature=shared
710.
▲
by
Ygg2
1y ago
I don't think so. One based numbering is barring few particular (spoken) languages the default. You have to had to change your counting strategies when going from regular world to 0 based indices. Maybe you had the luck of learning 0
711.
▲
by
Ygg2
1y ago
Interesting path. I went Basic, and Pascal and then C in college. Honestly it was such a mind twist.
712.
▲
by
Ygg2
1y ago
Maths books aren't being weird. They are counting in a way most people learn to count. One apple, two apples, three apples. You don't start zeroth apple, one apple, two apples, then respond the set of apple contains three apples.
713.
▲
by
Ygg2
1y ago
Yes but why does no one talk here about fighting the 0 indices. Or how they are switching to Lua, because 0 indices are hard? Am I the only person that remembers how hard it was to wrap your head around numbers starting at 0, rather than 1?
714.
▲
by
Ygg2
1y ago
> fight the borrow checker I see this and I am reminded when I had to fight the 0 indexing, when I was cutting my teeth in C, for class. I wonder why no one complains about 0 indexing anymore. Isn't it weird how you have to go 0 to
715.
▲
by
Ygg2
1y ago
> Godot launched 0.1 in February 2014 and got to 1.0 in December 2014. Yeah because that's when it was open sourced, NOT DEVELOPED. See https://godotengine.org/article/first-public-release/ > Godot has
716.
▲
by
Ygg2
1y ago
> If you choose to support 1.0 sure. If you choose not to, then people wait for x.0 where x approaches infinity. I.e. they lose confidence in your crates/modules/libraries. I mean, a big part of why I don't 1.x my OSS proj
717.
▲
by
Ygg2
1y ago
That's not unexpected they went from Bevy which is more of a game framework, than a proper GUI engine. I mean, you could also write how we went from C# code 1mil code of our mostly custom engine to 10k in Unreal C++.
718.
▲
by
Ygg2
1y ago
> Huh? I was giving an example of how we make undecidable properties trivial in languages. It can be any property. Yes, but insisting you have to be 100% machine verified, while the program is correct, it is impractical. While it might b
719.
▲
by
Ygg2
1y ago
> Unfortunately, it is a failing of many projects in the Rust sphere that they spend quite a lot longer in 0.x than other projects Yes. Because it makes a promise about backwards compatibility. > Rust language and library features th
720.
▲
by
Ygg2
1y ago
> The problem with Rust is that almost everything is still at an alpha stage. Replace Rust with Bevy and language with framework, you might have a point. Bevy is still in alpha, it's lacking plenty of things, mainly UI and an easy w
More ›