Better HN
topnewbestaskshowjobs
Log inSign up

islandert

30 karma · joined Feb 15, 2020 (6y ago) · 17 submissions

Submissions

comment 2y ago · link · parent

Would the JVM ecosystem almost be a working example of this? Since there are a variety of languages with editor integration that all compile down to the same byte code, it feels pretty close to what you’re describing.

comment 2y ago · link · parent

I made a CLI tool called kilojoule that is similar to jq. I addition to the normal suite of JSON manipulations, it also has support for a couple of other file formats and can call other shell commands.

https://github.com/stevenlandis/kilojoule

I’ve found it to be a pleasant multi tool for interacting with the shell when I need something a little more than bash.

It took a couple of weekends and evenings to get working but was a really fun way to learn about parsers, interpreters and Rust.

comment 2y ago · link · parent

TikTok?

comment 2y ago · link · parent

If you don't have access to COPY if the postgres instance is managed, I've had a lot of luck with encoding a batch of rows as a JSON string, sending the string as a single query parameter, and using `json_to_recordset` to turn the JSON back into a list of rows in the db.

I haven't compared how this performs compared to using a low-level sql library but it outperforms everything else I've tried in sqlalchemy.

comment 2y ago · link · parent

I love that writing LLM-friendly docs is just... writing good docs. There's a ton of overlap between accessibility work and preparing things to be used by LLMs.

I wonder if an unintended side effect of this AI hype cycle is a huge investment in more accessible applications.

comment 2y ago · link · parent

There’s a straightforward way to reach this testing state for optimization problems. Write 2 implementations of the code, one that is simple/slow and one that is optimized. Generate random inputs and assert outputs match correctly.

I’ve used this for leetcode-style problems and have never failed on correctness.

It is liberating to code in systems that test like this for the exact reasons mentioned in the article.

comment 2y ago · link · parent

Not high level but a RTO policy seems like an easy way to downsize without having to fire people now that interest rates are higher.

comment 2y ago · link · parent

I'm finishing up reading Cadillac Desert, a book describing the history of dam building and irrigation project in the US. It goes deep into all aspects of irrigation projects from environmental to economic to political.

Very cool to hear that this dam is getting torn down just 30 years after the book was published.

9.

Ask HN: How did you accidentally build a database?

2 points · by islandert · 2y ago · 1 comment

10.

Grace Hopper: Full Lecture at the University of Tennessee (1983)(youtube.com ↗)

3 points · by islandert · 4y ago · discuss

comment 4y ago · link · parent

My take is that dicts are fine as long as your code is well tested. Yeah, dataclasses and frozen classes have much better typing support, but if you code is mostly reading and writing JSON like many modern cloud apps, it can be easier to use plain dicts combined with decent tests to make sure you don't break downstream services.

comment 4y ago · link · parent

I remember when that popped up on my screen in college. Fun problems. There was one where you derived the page rank algorithm, but they framed it as radioactive decay.

Definitely a little questionable though for them to use their browser monopoly and search history to poach developers...

comment 4y ago · link · parent

wayback machine link from April 21: https://web.archive.org/web/20220421205808/https://fastertha...

comment 4y ago · link · parent

I agree with most of you points, but the one that stands out is "push for unit tests over integration/system tests wherever possible".

By integration/system tests, do you mean tests that you cannot run locally?

comment 5y ago · link · parent

WHich has a more powerful processor, the gameboy or the raspberry pi?

16.

The Secret Side to My Static Site(smlandis.com ↗)

3 points · by islandert · 6y ago · discuss

comment 6y ago · link · parent

I'm working on a python script that downloads web serials as ebooks. It's set up to check if a new chapter has been posted, and if there's a new chapter that finishes a book, it outputs the book as an epub so I can read offline.

To add a new story, I just write a function that takes a webpage and returns the next link and chapter content. It's low enough overhead that I can easily add new stories.