Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gavinray
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
781.
▲
by
gavinray
3y ago
I think "sealed interface" with implementations used by "records" gets you pretty close though right? This is usually what I do, something like: sealed interface Tree { record Leaf(int value) implements Tre
782.
▲
by
gavinray
3y ago
If you want a deep-dive into the bytecode, there's a great article at: https://medium.com/@nataliiadziubenko/java-20-pattern-matchi... The tl;dr = no new intrinsics (for now), it uses table-switches and invokedyna
783.
▲
by
gavinray
3y ago
I wrote about how Record Patterns along with Pattern Matching for Switch can be used to write things like Tree-Rewrite rules in AST analyzers/program optimizers efficiently if anyone is curious: This is how Spark's optimizer Catal
784.
▲
by
gavinray
3y ago
Thanks for the reply! Do you feel like you have a sort of "intuition" for which things might work, and you experiment starting from that, or what is your general thought process like? Or maybe you start by drawing things out on pa
785.
▲
by
gavinray
3y ago
In the event the author shows up: What is the mental process like when you work on/figure out these sorts of things? Do you have a sort of intuitive understanding/feeling for what you ought to do, or a mental visualization, or wha
786.
▲
by
gavinray
3y ago
Ah that's sort of a bummer -- same title and everything (initially). Hopefully they will notice this thread and comment though, or the threads can be merged.
787.
▲
by
gavinray
3y ago
If you look at the history of the author's own sorting implementation (ipnsort), it started as an attempt to port fluxsort to Rust: https://github.com/Voultapher/Presentations/blob/master/rust... h
788.
▲
by
gavinray
3y ago
Absolutely bewildering to me.
789.
▲
by
gavinray
3y ago
I find their salaries posted really odd. They offer $112,000 - $198,000 a year for this position, which requires some pretty wild math competency, electrical engineering, simulations experience, and security clearance: https://jo
790.
▲
by
gavinray
3y ago
I really enjoyed this article, as someone who didn't finish highschool and is a professional programmer. The Wikipedia entry on Huffman Coding is impenetrable to me, this article was easy to follow.
791.
▲
by
gavinray
3y ago
See also the proposal for language-support for scoped allocations: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p26... There are some issues with PMR usage that it hopes to resolve,
792.
▲
by
gavinray
3y ago
This is pretty cool -- one thing I think you may want to highlight more is the SQL analysis. In your demo video, when you run the following statement: update payroll set payroll_status = = 'X' where ... In the simulatio
793.
▲
by
gavinray
3y ago
Never in my life have I seen a ".dll" webpage. Other links on the site seem to have ".aspx" so I'm assuming it's some sort of .NET thing, does anyone know what a ".dll" page is?
794.
▲
by
gavinray
3y ago
> I think it would be more interesting to expose how the bytecode becomes JS. There's no bytecode emitted -- Kotlin is unique among JVM languages in that it acts more like a frontend, similar to LLVM or GCC. The Kotlin code
795.
▲
by
gavinray
3y ago
> How does it work under the hood? The Kotlin is transpiled to JavaScript by the Kotlin compiler: https://kotlinlang.org/docs/js-overview.html
796.
▲
by
gavinray
3y ago
It literally is the first thing you see. The docs at https://minigdx.github.io/tiny/ have a demo "BREAKOUT" game embedded in the page under the first paragraph with a link to the source code lol Screenshot fo
797.
▲
by
gavinray
3y ago
It's in the first like 20 words of the post: > The engine was created using Kotlin *Multiplatform* and can run on a JVM and JS. Kotlin allows you to have a single codebase that compiles and runs on: - JVM - WASM - JS - Native
798.
▲
by
gavinray
3y ago
Very excited for the performance implications for Node in general. Node is going to be very speedy in v21.
799.
▲
by
gavinray
3y ago
The commenter mentioning reading small chunks from /dev/zero says specifically GREATER than the stated x8 throughput, which makes me think it's x8 in the general sense. I could be mistaken though, it seems odd not to post a
800.
▲
by
gavinray
3y ago
You might find these helpful: - "Practical Filesystem Design": http://www.nobius.org/dbg/practical-file-system-design.pdf - "Robert Love: Linux Kernel Development (chapters 13-14)" https:/
801.
▲
by
gavinray
3y ago
You can find some "hello-world" style examples here, along with fantastic tutorial materials: https://unixism.net/loti/tutorial/index.html
802.
▲
by
gavinray
3y ago
> GraphQL does a nice job on the query side of keeping consumers away from the wiring, but shifts the obligation to middleware resolvers. I'm not sure that I understand how Orbital is different from tools that autogenerate G
803.
▲
by
gavinray
4y ago
There is a book that is exactly this, "Database Design and Implementation" by Edward Sciore. You write a database in Java while having the principles explained along the way. https://www.amazon.com/Database-Design-
804.
▲
by
gavinray
4y ago
You might also consider buying your son a Github Copilot license, it's $10/mo and I would easily pay $50/mo for the value it provides.
805.
▲
by
gavinray
4y ago
This is called DBToaster https://dbtoaster.github.io/ *"DBToaster: Higher-order Delta Processing for Dynamic, Frequently Fresh Views"∗ http://vldb.org/pvldb/vol5/p968_yanifahmad_vldb2012.
806.
▲
by
gavinray
4y ago
Why are you going to lose your house? You bought it while you had tech money and the bicycle mechanic money can't pay for it now? Have you considered doing some consulting or something on the side? So sorry to hear this.
807.
▲
by
gavinray
4y ago
That humans are by and large a host for the bacteria in our gut and elsewhere -- and the degree to which these (happy or unhappy) tenants can impact our behavior -- is something I constantly struggle to find controversial. Look at the mount
808.
▲
by
gavinray
4y ago
The major difference that I seem to be able to find digging through the docs/wiki is that in RIFE2, "continuations" are a first-class feature of the framework and the framework was built with these in mind. What this allows y
809.
▲
by
gavinray
4y ago
This is great!
810.
▲
by
gavinray
4y ago
This would also allow browsers to act as direct database clients if I am interpreting this right? That means that your web app could act like "psql" and open a direct TCP socket connection to "postgresql://user:pass
More ›