Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yafetn
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
yafetn
2y ago
Speaking of Hitchens, I highly recommend his “Letters to a Young Contrarian”. Or any writing of his, to be honest.
2.
▲
by
yafetn
2y ago
The currency codes could probably be inline value classes. That way, you can do val price = 100 money USD Note the lack of quotes around USD.
3.
▲
by
yafetn
2y ago
JetBrains’ Lincheck[0] is a good library in the Kotlin/Java world for this stuff. I especially like that it’s declarative, and also the way it outputs the linearizability results. [0]: https://github.com/JetBrains/
4.
▲
by
yafetn
2y ago
> Scope functions are still huge. I’d put any one of extension methods, value and data classes, immutable variables, structured concurrency, and top-level functions ahead of scope functions for reasons to switch to Kotlin. But hey, if yo
5.
▲
by
yafetn
2y ago
If null-safety on the JVM is important to you, just use Kotlin.
6.
▲
by
yafetn
2y ago
> 2) choose paths now that keep options open later. Not sure about this one. I’ve seen teams that are too noncommittal in their architecture decisions because “what if [insert unlikely thing that’d not actually be the end of the world] c
7.
▲
by
yafetn
2y ago
I think the Jetbrains team are dropping the ball when it comes to Kotlin on the JVM. They seem to be focusing their energy on KMP, and I’m not sure they have the capacity to deal with all the platforms they want to target (Kotlin/JS, K
8.
▲
by
yafetn
2y ago
I wonder if that’d make them a broker and not an exchange. Different set of rules, regulations, and licenses.
9.
▲
by
yafetn
2y ago
Interesting read, thanks! Some points: > Hogging instances might pay, if this stops competitors getting good hosts. This would eat into PnL and is also wasteful on energy. Aren’t reserved instances cheaper than spot? > Bad players c
10.
▲
by
yafetn
2y ago
I had a professor who hated Jared Diamond for being reductionist, and I’ve been skeptical of him ever since. However, I see the immense appeal of his theories (and the one linked here) because they’re so simple to understand. They make for
11.
▲
by
yafetn
3y ago
Fair enough, and that totally makes sense. I guess I just miss the “Well, hello friends…” :)
12.
▲
by
yafetn
3y ago
A little off topic: what happened to the hacking videos on YouTube? Used to look forward to them but I haven’t seen a new one in a while.
13.
▲
by
yafetn
3y ago
Semi-related is the Aeron project: https://github.com/real-logic/aeron
14.
▲
by
yafetn
3y ago
This is interesting for several reasons. 1. It happened during the Treasury auction, and if the timing was intentional, a case could be made about it being a national security issue. The hackers disrupted the largest, and possibly most impo
15.
▲
by
yafetn
3y ago
Lest someone new to Kotlin only reads the title and decides to spawn bare threads all over the place, don’t. At first pass, it's not clear to me what the actual work the author is doing in his benchmark. Instead, I’d point to the excel
16.
▲
by
yafetn
3y ago
Netflix’s DGS framework for GraphQL is nice to work with but we’ve been frustrated with some prioritization choices by the team. For instance, if you’re using Kotlin, it’s impossible to define and pass scalars to the latest version of the c
17.
▲
by
yafetn
3y ago
I haven’t yet tried KMP, but I think Kotlin in general is slept on here on HN. My experience is on the server side with both Micronaut and Spring Boot and it’s such an ergonomic language to write in. It’s probably my favorite language thus
18.
▲
by
yafetn
3y ago
Yeah, I watched that talk (and many others from KotlinConf) but it was a bit too high level and not actionable.
19.
▲
by
yafetn
3y ago
Can someone please explain how Project Loom and virtual threads in the JVM affect Kotlin’s coroutines?
20.
▲
The Unreasonable Effectiveness of Simple Binary Encoding (SBE)
(yafetn.github.io)
8 points
by
yafetn
3y ago
|
10 comments
21.
▲
by
yafetn
3y ago
It’s probably fine, but this sort of thing is why transactionAmount and transactionCurrency are better when separated. Consider the case when you’re doing some reporting from your DB based on currency; do you really want to have to deal wit
22.
▲
by
yafetn
3y ago
I’d also add: — If you’re using JSON to pass around monetary quantities (eg. from the frontend to the backend), put them in strings as opposed to the native number type. You never know what the serializers and deserializers across language
23.
▲
by
yafetn
3y ago
Hi Andreas, when are we getting the next batch of “FIXME Roulette” videos? They’re the most entertaining yet educational debugging videos out there.
24.
▲
by
yafetn
4y ago
One of the updates I was looking forward to, and congrats on the $800k revenue! This year, I hope to transition assembly to China, where all of our parts originate. I’d have thought people were doing the opposite nowadays — bringing