Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jjnoakes
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
181.
▲
by
jjnoakes
4y ago
> Map’s second and third parameters are optional. I mean, map always passes them in, so in that sense they aren't optional. Mixing that with functions that take in optional parameters, but aren't usually called with them, gives
182.
▲
by
jjnoakes
4y ago
Scala is on my list of languages to try. I'm usually not a fan of large runtimes or too many abstractions from the OS, but I do want to give it a fair shake. F# too.
183.
▲
by
jjnoakes
4y ago
> So parseInt coincidentally matches the signature Array<string>.map() is looking for. If that were true I'd not mind quite as much... but actually, parseInt takes two parameters and map passes three.
184.
▲
by
jjnoakes
4y ago
I do that today, but I believe there is still a lot of opportunity for languages to approach my ideal, and I think I share my ideal with others. And if a language like that did exist, or could be made, I'd love to use it - changing lan
185.
▲
by
jjnoakes
4y ago
I'd prefer something with a more sound type system, and something that makes cleaning up resources easier and more ergonomic. This might help with cleanup: https://github.com/tc39/proposal-explicit-resource-managem
186.
▲
by
jjnoakes
4y ago
I love Rust but I am still looking for the perfect blend of the two camps. One the one hand, Go/Node/Python/etc doesn't scratch my itch for the strong type system (sum types/tagged enums mostly) and on the other han
187.
▲
by
jjnoakes
4y ago
> treats you like an adult who can make responsible decisions on their own I have to disagree with this characterization. It also seems a bit patronizing. Having more choice can be good in some cases, and having fewer choices can be good
188.
▲
by
jjnoakes
4y ago
Again for me personally, I find the opposite true. With C and C++ I'll find that once in a while, quick sloppy coding gets me something that seems to work for a bit and then fails in subtle and hard to debug ways. That's a time si
189.
▲
by
jjnoakes
4y ago
You might want -ffreestanding in those cases.
190.
▲
by
jjnoakes
4y ago
I guess it depends on your point of view. For me, having Rust catch issues even when prototyping makes me enjoy prototyping more. I absolutely hate (even when prototyping) when I try to run something, it chugs along for a bit, and then hits
191.
▲
by
jjnoakes
4y ago
Says who? I love prototyping things in Rust.
192.
▲
by
jjnoakes
4y ago
I also think it will bring faster development and easier testing.
193.
▲
by
jjnoakes
4y ago
If a less complex language meets your requirements, by all means use it. But I still have no idea how that is relevant here. C doesn't give you safety and less complex languages don't give you performance and control. That's
194.
▲
by
jjnoakes
4y ago
"Moreover, Rust is extremely complex, similar or worse than C++"
195.
▲
by
jjnoakes
4y ago
We're comparing rust to c++ in this thread. There are simpler languages than both out there, sure, but that's not really relevant here.
196.
▲
by
jjnoakes
4y ago
Rust is absolutely a safe language, and in more ways than just memory safety. The only way to get unsafe code in rust is to opt in to unsafety with a keyword that can easily be checked for, so that you can decide for yourself to enforce tha
197.
▲
by
jjnoakes
4y ago
Not OP and not choosing a side in this thread on the RIIR topic, but I would like to address why I like Rust over those other language - in addition to memory safety, I really like the stronger types (specifically sum types), the move seman
198.
▲
by
jjnoakes
4y ago
What kind of Python types do you envision needing to pass across the native/wasm boundary?
199.
▲
by
jjnoakes
4y ago
Reviewing code for logic bugs is less work than reviewing code for logic bugs and undefined behavior.
200.
▲
by
jjnoakes
4y ago
Some linters catch some undefined behavior, but not all undefined behavior (I'm guessing not even most undefined behavior). And no one runs linters. If they did, a ton of CVEs would just vanish. But they haven't.
201.
▲
by
jjnoakes
4y ago
Not just rust, but many languages.
202.
▲
by
jjnoakes
4y ago
> Talking of bishops: should this game require bishops to stay on squares of their starting colour? Given how captured work and how you'd probably define "on a square" with white a bit of freedom (perhaps the center of the
203.
▲
by
jjnoakes
4y ago
Thanks, that makes sense.
204.
▲
by
jjnoakes
4y ago
I'd be interested in the lessons learned, I might need them some day. For example, how do you ensure that the concrete blocks sink all of the fire debris?
205.
▲
by
jjnoakes
4y ago
Just curious - how many developers worked on that project, and for how long?
206.
▲
by
jjnoakes
4y ago
Sorry, did you reply to the right comment? We are talking about writing code that uses a GC vs doesn't use a GC, not about writing a GC.
207.
▲
by
jjnoakes
4y ago
Aren't you assuming that you need to spend substantially more time on memory management without a GC? I don't find that to be the case personally.
208.
▲
by
jjnoakes
4y ago
I have the opposite experience. Most of the bugs in my code are type-related issues, and once I fix those (usually with the help of the compiler, since I prefer statically-typed languages), my code usually runs correctly the first or second
209.
▲
by
jjnoakes
4y ago
Sorry, do you mean just sms 2fa or totp too? If you meant totp too, how so?
210.
▲
by
jjnoakes
4y ago
Passkey is about the random password stored in the password manager AND the protocol between the browser and the password manager to ensure the password isn't phished. It is the protocol that needs implementation.
More ›