Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Jarred
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
241.
▲
by
Jarred
5y ago
Hi, I made this. This shouldn't be on HN yet. It's not quite ready for that.
242.
▲
by
Jarred
5y ago
> I dislike the command-line format of Hop; it seems to missing many features. I agree 100%. I wrote most of it in like three hours; it's not a polished product. > My own opinion for the general case is that I like to have concat
243.
▲
by
Jarred
5y ago
I don't think builtin compression is necessary, but it would be better if the CLI supported it similarly to tar. Compressing a 57.5 MB .hop archive with `gzip -c` returns an 11.7 MB file. This is a similar compression ratio as tar ->
244.
▲
by
Jarred
5y ago
Offsets and lengths are stored as unsigned 32 bit integers. This saves space/memory, but means it won’t work for anything bigger than 4 GB Maybe that’s overly conservative. Wouldn’t be hard to change
245.
▲
by
Jarred
5y ago
Good idea, worried a little about impact to serialization/deserialization time though. Maybe could still store it as a flat array
246.
▲
by
Jarred
5y ago
Something like two weeks before a public beta
247.
▲
by
Jarred
5y ago
Hop reduces the number of syscalls necessary to both read and check for the existence of multiple files nested within a shared parent directory. You read from one file to get all the information you need instead of reading from N files and
248.
▲
by
Jarred
5y ago
The numbers shown are with zip -0, which disables compression.
249.
▲
by
Jarred
5y ago
I made this Happy to answer any questions or feedback
250.
▲
by
Jarred
5y ago
Mimalloc improved Bun’s performance on macOS by 10%.
251.
▲
by
Jarred
5y ago
What do you think of NURBS? eg http://verbnurbs.com/ . It’s intended for 3D instead of 2D, but still kind of relevant How do you plan on doing text rendering? I feel like that’s often a challenge with cross-platform UI frame
252.
▲
by
Jarred
5y ago
Hi, author of Bun here > they were leveraging the ubiquity of C ABI - via zig - to leverage JavascriptCore, and looking into V8 bindings, and focusing on lightning fast hot reloading instead of reinventing parsing This isn’t entirely cor
253.
▲
by
Jarred
5y ago
I globally import this via usingnamespace: pub const string = []const u8; This lets me do: &[_]string{“hi”} A little better, but not great.
254.
▲
by
Jarred
5y ago
Running the benchmarks locally (zig is fastest, but that's probably expected) zig (~1 week older than HEAD): ./zig-out/bin/qsort filling shuffling running took 177.46ms rust nightly: cargo
255.
▲
by
Jarred
5y ago
I’ve been using Zig for a new JavaScript build tool and I really like it. It’s great for writing performance-critical code. It took me about two weeks to feel comfortable & productive in it.
256.
▲
by
Jarred
6y ago
If you look near the end of the line for each result, that % value is the margin of error. > readFileP x 2,182 ops/sec ±4.00% (67 runs sampled) This means readFileP took between 2,094 and 2,270 ops/second. > fs.readFile x 2
257.
▲
by
Jarred
6y ago
I agree in principle, but for some reason, the underlying implementation for fs.promises is completely separate. I think this is where fs.promises.readFile reads the actual file https://github.com/nodejs/node/blob&
258.
▲
fs.promises.readFile is 40% slower than fs.readFile
(github.com)
145 points
by
Jarred
6y ago
|
74 comments
259.
▲
by
Jarred
6y ago
just.js (#9) looks interesting https://github.com/just-js/just It seems to be a much tinier JavaScript runtime than Node.js (still using v8), but linux only The benchmark is probably unrealistically optimized code but
260.
▲
by
Jarred
6y ago
Fixed in v1.1.26. Thanks for reporting
261.
▲
by
Jarred
6y ago
Now it does. If you have the `GITHUB_TOKEN` environment variable set to a personal access token or if you happen to use the hubs github cli it will work
262.
▲
by
Jarred
6y ago
Turns out this was a bug – it wasn't properly adding `--wait` when opening the editor. Its fixed in 1.1.15.
263.
▲
by
Jarred
6y ago
I read lots of code on GitHub, so I got really excited when I saw github1s ( https://news.ycombinator.com/item?id=26083919 ), but was disappointed when I saw that search doesn’t work ( https://news.ycombinator.com&#
264.
▲
Show HN: git-peek – git repo to local editor instantly
(github.com)
114 points
by
Jarred
6y ago
|
36 comments
265.
▲
by
Jarred
6y ago
It works with non GitHub repos, but it’s not as fast. When it detects a GitHub link, it downloads the tarball from GitHub & and separately downloads the specific file linked (or the readme) using JSDelivr as a CDN. This is much faster t
266.
▲
by
Jarred
6y ago
Author here — this is actually not a bug, but a deliberate design decision (so long as you meant, when the editor closes). I’m sorry for the confusion. git peek is not a faster alternative to git clone. It’s for quickly reading other peopl
267.
▲
by
Jarred
6y ago
Feature request: make CMD+P support searching files in the repository. Currently, it shows "No matching results". To implement this quickly client-side, one easy way would be to use jsdelivr's data api. For example, to get th
268.
▲
by
Jarred
6y ago
It’s very impressive how fast this loads. Every time I’ve integrated Monaco (web-based Visual Studio Code), it takes multiple seconds to render. GitHub Codespaces, the official way to open GitHub repos in a web-based Visual Studio Code inst
269.
▲
Light Table (2014)
(kickstarter.com)
2 points
by
Jarred
6y ago
|
0 comments
270.
▲
by
Jarred
6y ago
A different kind of tab-based filesystem that would be nice: Expose all the resources used in each tab in a virtual filesystem (JS, CSS, images, HTML, fonts, etc) in a folder for each tab. Basically Chrome Developer Tool's Sources tab
More ›