Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nemo1618
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
181.
▲
Goldilocks Zone Finder – Find your ideal climate
(lukechampine.com)
338 points
by
nemo1618
5y ago
|
195 comments
182.
▲
by
nemo1618
5y ago
I would argue that one of Go's strengths is its resistance to bad code. Sure, you can still write gross Go. But I'll take gross Go over gross C++, gross Haskell, or gross Python any day.
183.
▲
by
nemo1618
5y ago
Given the provenance (MSCHF), I guess we can safely assume that the..."unfortunate"...MschfBoard logo was fully intentional.
184.
▲
by
nemo1618
5y ago
The type system can't catch nil dereferences or out-of-bounds accesses, which (in my experience) are the most common causes of runtime panics in Go. I assure you, there are many ways to make a Go program crash. :) If your program is
185.
▲
by
nemo1618
5y ago
Only thing keeping me from switching to this is the ability to jump from docs -> source code. It looks like they do support this in some form, but not in a way that's backwards-compatible with existing packages, which is kind of a d
186.
▲
Lineiform, a meta-JIT library for Rust interpreters
(redvice.org)
13 points
by
nemo1618
5y ago
|
8 comments
187.
▲
by
nemo1618
5y ago
Good example of this: What is the complexity of the fastest algorithm that prints the nth Fibonacci number? Novice: "O(n), because you have to iterate from 0..n." Expert: "O(log n), because we can use matrix exponentiation.&q
188.
▲
by
nemo1618
5y ago
Yes, personally I would not recommend this approach, just wanted to clarify how such a thing could be achieved.
189.
▲
by
nemo1618
5y ago
You can release a hardfork, such that all participants agree to treat the offending block as a special case. No different from the Ethereum DAO fiasco.
190.
▲
by
nemo1618
5y ago
Weird to premise an article on the assertion that blockchain devs suffer from a lack of...adversarial thinking? "How will this technology be used to harass and abuse people?" is a question that security engineers ask every single
191.
▲
by
nemo1618
5y ago
Hey, that's the Barkley: Shut Up and Jam: Gaiden title music! https://www.youtube.com/watch?v=lWKQiZVBtu4 I really like your idea for solving the "endless runner problem." I guess the reason we haven't s
192.
▲
by
nemo1618
5y ago
I think analyzing languages through the lens of incentives ("what is this language pushing me towards/away from?") is a great idea. But if Haskell's incentives make it well-suited for programming in the large, why is it
193.
▲
by
nemo1618
5y ago
Not really; both the private key (scalar) and public key (point) are encoded as 32 bytes. However, some implementations concatenate the two and refer to that 64-byte array as the "private key" -- this is simply an optimization so
194.
▲
by
nemo1618
5y ago
The process for generating a pubkey is: 1. Hash the private key 2. "Clamp" the result 3. Multiply by the base point Clearly step 1 will give you an equal chance of any 5-byte prefix, so the question is whether ste
195.
▲
by
nemo1618
5y ago
meh, I found Girl who Leapt through Time, Summer Wars, and Your Name to be pretty forgettable. Spirited Away, Tokyo Godfathers, and Akira are obviously classics, but none of them have made quite as deep an impression on me as EoE. I guess i
196.
▲
by
nemo1618
5y ago
Call me crazy but imo it's worth watching the entire series just so that you can then properly enjoy EoE -- which is surely one of the greatest animated films ever made.
197.
▲
by
nemo1618
5y ago
> However, in combination with a stove, the electrical efficiency of a thermoelectric module doesn’t matter that much. If a module is only 5% efficient in converting heat into electricity, the other 95% comes out as heat again. If the st
198.
▲
by
nemo1618
5y ago
That's exactly the view I express in the Twitter thread lol
199.
▲
by
nemo1618
5y ago
I would argue that it is: it's explicitly a language designed "in the service of software engineering," which is something we're still figuring out how to do. It has implemented novel features that serve this end, and le
200.
▲
by
nemo1618
5y ago
For me, it's not a question of terseness -- it's more about communicating intent, and not polluting the scope with incidental variables. Everyone knows what map/filter/reduce do. When reading new code, seeing "map&q
201.
▲
by
nemo1618
5y ago
What I really missed was generic map-function-over-slice, which could be handled by adding a much narrower feature. If one graded possible Go point extensions by a figure of merit in which the numerator is "how much
202.
▲
by
nemo1618
5y ago
> There's some temptation to think that terse==readable, but in practice this rarely extends beyond the simplest cases A quick glance at any array language (APL, J, K, Q, etc.) confirms this. ;)
203.
▲
by
nemo1618
5y ago
And Urbit, of course! https://urbit.org
204.
▲
by
nemo1618
5y ago
> I remember reading about why Go doesn't need generics, yet here we are waiting for Go Generics to be ready Hey, us generics-naysayers are still out here (grumbling)! :)
205.
▲
by
nemo1618
5y ago
Good luck! I recommend building up a library of helper functions; it will save you a lot of typing. Here's mine: https://github.com/lukechampine/advent/blob/master/utils/uti...
206.
▲
by
nemo1618
5y ago
I've done AoC in Go every year, with a few good leaderboard placings, but this year I'm trying something new: a custom competitive programming language , optimized for solving AoC problems as quickly as possible. Will it be power
207.
▲
by
nemo1618
5y ago
One nice thing about lightweight crypto is that it's easy to port. Implementing ASCON in Go was pretty fun and only took an hour or two: https://github.com/lukechampine/ascon/blob/master/ascon.go (O
208.
▲
by
nemo1618
5y ago
I wrote a test recently for a simple "echo"-style server: clients writes a name to a socket, server replies with "Hello, " + name. Nothing crazy. In the test body, I wrote "foo" to the socket. Copilot immediate
209.
▲
by
nemo1618
5y ago
> Shared understanding is important for building and maintaining software. I think this is where Go (the language) really shines. Go is "boring" -- there are no macros, no operator overloading, no default arguments, none of tha
210.
▲
by
nemo1618
5y ago
Surprised to see no mention of Urbit, which sits somewhere between Uxn and Linux. Holding Urbit's OS in your head would certainly be more challenging than Uxn, but it's still doable. When something breaks, you can actually fix it
More ›