Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rockwotj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
151.
▲
by
rockwotj
3y ago
I also recommend https://sli.dev/ it’s pretty batteries included and mdx based
152.
▲
by
rockwotj
3y ago
Would be super interested in this if you explore this more! Feel free to reach out (contact info linked from my bio) if you’re interested in collaborating.
153.
▲
by
rockwotj
3y ago
I think the wasm C API is not going to live up to the promise. To actually use high performance features you need many additions to that API that most implementations provide, thus making it less portable. Source: I contribute a lot to wasm
154.
▲
by
rockwotj
3y ago
I was researching this the other day, here is a non trivial example: https://github.com/floooh/sokol-tools/blob/master/build.zig Here is a tutorial: https://www.zvm.app/tutorials/zig
155.
▲
by
rockwotj
3y ago
As I have been learning about stack unwinding and how it works, I really feel like this is quite the wizardary that is amazing it all works.
156.
▲
by
rockwotj
3y ago
Generators are a thing in multiple languages that are essentially this (javascript, C# to name a couple). It’s nice for creating lazily iterators ergonomically
157.
▲
by
rockwotj
3y ago
Seriously. Shortwave before it pivoted to AI, before it pivoted to Google Inbox replacement, was attempting to be slack for email. You can still see parts of this alive in the UI today. But it was a dream to just have a really good mailing
158.
▲
by
rockwotj
3y ago
If your tsconfig settings are strict enough this is a type error :)
159.
▲
by
rockwotj
3y ago
Agreed, runtime checks can be implemented in typescript - that’s the beauty of it
160.
▲
by
rockwotj
3y ago
I feel like this is what code review is for. Isn’t this also possible with your application code? How do you prevent that? As for I/O concerns, run it in CI with deno and ensure there is no I/O
161.
▲
by
rockwotj
3y ago
On the reverse side of things, trying to find a C++ dev is usually harder than finding people who want to write Rust.
162.
▲
by
rockwotj
3y ago
Ah just give me typescript, I do not need to learn a new thing for configuration languages and at the end of the day the output is compatible with JSON. Typescript has all the stuff I would want: types, first class json support, an ecosyste
163.
▲
by
rockwotj
3y ago
Yes RTTI
164.
▲
by
rockwotj
3y ago
Presumably they just use -fno-exceptions, and not everyone has to have portable code. I appreciate the concept but pragmatically there are plenty of C++ server side projects that only use Clang and GCC
165.
▲
by
rockwotj
3y ago
No stdlib or no exceptions/RAII. Because everyone at Google is on the no exceptions/RAII train (according to the Google Style Guide), and I happen to like exceptionless C++
166.
▲
by
rockwotj
3y ago
Thanks for the correction! It's hard to track all of this :)
167.
▲
by
rockwotj
3y ago
I have compiled JQ to wasi (in terms of moderately complex ( and useful )). Took me a couple of hours, mostly because of some pthread stuff I had to noop. And that's being fixed with wasi-threads https://github.com/rock
168.
▲
by
rockwotj
3y ago
Honestly I find all these different config languages either too much to learn or they get too unwieldy quickly. I have arrived that I think using typescript to generate JSON as being the ultimate solution. Easy JSON support, optional typing
169.
▲
by
rockwotj
3y ago
I recently wrote a blog post about how I think WasmCloud is very close to this with the new component model. They use IDL instead of language constructs to specify boundaries. Pros and cons of either https://blog.rockwotj.com
170.
▲
by
rockwotj
3y ago
Look at Netty.io, that's the defecto java networking library. They have some optional JNI stuff
171.
▲
by
rockwotj
3y ago
Here is an example project that even downloads the right JDK automatically for you: https://github.com/rockwotj/SyllabusDB
172.
▲
by
rockwotj
3y ago
Honestly Bazel and Java is actually a really nice experience. Pull in third party stuff from https://github.com/bazelbuild/rules_jvm_external . There is built in support for uber jar builds by adding a _deploy.jar suffi
173.
▲
by
rockwotj
3y ago
The benchmark is run 5 times without flushing file system caches. If you mmap it, it will still be in memory between process runs. The author intended this FWIW
174.
▲
by
rockwotj
3y ago
A few things: Disk access can certainly be parallelized, and NVMe is blazing fast, so the bottleneck is more the CPU than disk. There are systems that are built around around modern hardware that realize this (redpanda.com, where I work is
175.
▲
by
rockwotj
3y ago
Yeah I missed this originally, and stuff could be faster with this assumption without a full double parser. The fastest java solution dies some near branchless decoding for these
176.
▲
by
rockwotj
3y ago
Why? The author does explicitly want all the files to be cached in memory for the later runs: https://x.com/gunnarmorling/status/1742181941409882151?s=20
177.
▲
by
rockwotj
3y ago
Yeah so I had a discussion on Twitter about this, turns out 12GB is small enough to fit into memory, and the author runs submissions by running a solution 5 times in a row, so using direct IO actually hurts because having the kernel cache i
178.
▲
by
rockwotj
3y ago
> Thanks to Llama, Meta's open-source AI development tool, almost anyone can build their very own social media platform. I don’t believe this in a second. Even if an AI could cobble code together to make an entire social media platf
179.
▲
by
rockwotj
3y ago
I see you don’t like threads, you just want each message to be it’s own entity. I think Apple Mail has a setting for this but Shortwave is very much a more sophisticated version of threads compared to other clients. They detect side convers
180.
▲
by
rockwotj
3y ago
You should try shortwave.com, it’s cheaper, has a similar feature set and in some ways it’s better (the dark mode is much better, for example)
More ›