Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eknkc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
211.
▲
by
eknkc
2y ago
It is becoming common. For example Segment has a documentation for similar setup: https://segment.com/docs/connections/sources/catalog/librari... I've seen this being implemented at least 5 years ag
212.
▲
by
eknkc
2y ago
Yeah, bun for example can execute typescript files directly. It does not include the tsc or anything, it just strips out type annotations and executes the remanining file that is valid JS. esbuild does the same I believe.
213.
▲
by
eknkc
2y ago
I feel like the recent hype around SQLite made people use it for a lot of stuff that is not really suitable for SQLite. It has too many caveats especially around data types. I'm not saying it does not deserve the attention, it is a fan
214.
▲
by
eknkc
2y ago
Thanks for the insights. Precomputing is not really suitable for this and the thing is, I'm mostly using it as a lookup table on key / value queries. I know Duckdb is mostly suitable for aggregation but the http range query suppor
215.
▲
by
eknkc
2y ago
This makes sense but the problem I had with duckdb + parquet is it looks like there is no metadata caching so each and every query triggers a lot of requests. Duckdb can query a remote duckdb database too, in that case it looks like there i
216.
▲
by
eknkc
2y ago
Yep this thing is the reason I thought about doing it in the first place. Tried duckdb which has built in support for range requests over http. Whole idea makes sense but I feel like the file format should be specifically tuned for this use
217.
▲
by
eknkc
2y ago
Is there a good general purpose solution where I can store a large read only database in s3 or something and do lookups directly on it? Duckdb can open parquet files over http and query them but I found it to trigger a lot of small requests
218.
▲
by
eknkc
2y ago
Won’t work with https. If that malicious actor can install a custom ca too, they can already install whatever spyware they want.
219.
▲
by
eknkc
2y ago
My remark was a little more abstract and frankly, absurd though. I mean, the most memory safe language will invoke syscalls. It will ask for memory pages and stuff. If we assume the app is running on a pile of shit because the OS is written
220.
▲
by
eknkc
2y ago
Yeah just a hyperbole. My point is, people act like anything built with non memory safe languages is shit ever since Rust became the Jesus. We have the actual operating systems written in C, working ok. It is fine. Yeah maybe Rust would be
221.
▲
by
eknkc
2y ago
All the major operating systems these browsers are running on, are written in c and c++. How can you have a real memory safe application when the memory itself is managed by a shit ton of code written in an unsafe language?
222.
▲
by
eknkc
2y ago
I think it makes a lot of sense for Vercel to push RSC and all the complexity of new Next. - They sell compute / bandwidth. You can not make a lot of money if people are building SPAs that load from a CDN and execute on client. - SSR k
223.
▲
by
eknkc
2y ago
Likely because they are compiling Java with WasmGC extensions and stuff. If you try C, Rust, Zig etc they tend to run extremely fast in WASM. Go also has a WASM target which runs pretty slow compared to its native binaries. GC extensions mi
224.
▲
by
eknkc
2y ago
If you are on macOS, give OrbStack a shot. It works surprisingly well and fast.
225.
▲
by
eknkc
2y ago
Yeah, I took a look at the code and the prompt documentation (which is in Chinese) and I came to the conclusion “why?”. It is interesting though.
226.
▲
by
eknkc
2y ago
I think the last sample needs a `fba.reset()` call in between requests. BTW, I used zig a lot recently and the opaque allocator system is great. You can create weird wrappers and stuff. For example, the standard library json parser will par
227.
▲
by
eknkc
2y ago
I guess you could place a zeroing allocator wrapper in between the arena and it's underlying allocator. That would write zero to anything that's getting freed. Arena deinit will free anything allocated from the underlying allocato
228.
▲
by
eknkc
2y ago
Probably need to do a pass to find all \r chars, check if the next char is \n and if so, discard it. Otherwise convert it to \n. edit: Yeah, does exactly that: https://chromium-review.googlesource.com/c/chromium/sr
229.
▲
by
eknkc
2y ago
It is weird that everyone has been bashing these features. What is all the negativity? I myself do not like pushing AI into everything but I think this is a great use case for LLMs. And it was already opt-in. Just tried "find all pdf f
230.
▲
by
eknkc
2y ago
I have 627 items in my 1P vault. That won't work.
231.
▲
by
eknkc
2y ago
I do. It is a critical software for me. Why would I use something inferior?
232.
▲
by
eknkc
2y ago
I’ve started using zig for some stuff recently and it can include c effortlessly. Also with rust it is pretty easy to interact with c (well, you need unsafe and I guess for this particular case, bindgen would not be able to provide bindings
233.
▲
by
eknkc
2y ago
I find this type of writing tiring to be honest. The subject is interesting enough but I feel like I’m trying to find a recipe in one of those cooking sites also acting as chef’s diary.
234.
▲
by
eknkc
2y ago
This was a couple years ago so not sure but likely 50+ TB/month.
235.
▲
by
eknkc
2y ago
We had a site hosted on CF business plan with fairly large bandwidth usage (completely legal, had a lot of media). They approached us with an enterprise plan but we did not have the budget for it. Asked for a little time, they said fine and
236.
▲
by
eknkc
2y ago
Ok hear this, I was toying with zig last week and compiled a quickjs wrapper that can run React and compiled that to wasm. So I have a JS runtime running wasm which runs quickjs runtime via zig and that runs React. Just trying to learn zig
237.
▲
by
eknkc
2y ago
I guess if you have a use case with higly cacheable data on edge, it might work great. For example, a form builder like typeform could cache form definitions on edge and render them close to users. Submissions would require db communication
238.
▲
by
eknkc
2y ago
Last time I tried an hdpi display on linux it was not good. But that was a couple years ago so I assumed things would probably be much better now. Was curious if it is still bad.
239.
▲
by
eknkc
2y ago
I go blind when I look at a lower ppi display at this point. With or without subpixel AA. Weird how you get used to something.
240.
▲
by
eknkc
2y ago
Is this a linux thing? Can’t think of any real issue on mac.
More ›