Yanael

Joined 11 years ago

Karma
18
Submissions
29
Member since
Sep 3
Build my path with an export

https://yanael.io

View on Hacker News

Recent submissions

Comment · 7 months ago
I rarely render it and only use it with syntax highlighting in my text editor, and that’s it. It helps structure my notes, and I love it, KISS.
Comment · 10 months ago
Comment · 10 months ago
Comment · 10 months ago
Logi Options+ stopped working because of an expired certificate. Mouse and keyboard custom settings are not working.
Comment · 1 year ago
“Add to Reading List” on iOS Safari
Comment · 2 years ago
Yeah, it's an interesting problem to solve. The library is designed to parse incomplete json without waiting for the stream to finish.
Comment · 2 years ago
Thanks! Yeah, creating an abstraction over the raw JSON and how you want to use it in your code makes it more practical.
Comment · 2 years ago
Nice, it looks like a good library to build on top of. I like the available events: start_map, end_map, etc. I did try a library in JS that had similar ones, but it lacked the granularity to cover all use cases for individual fields instead of an entire item. I'll keep a note of this one if I do Python JSON streaming.
Comment · 2 years ago
This looks very good. The Fetch API is a nice one, so leveraging it sounds perfect. Thanks for the link.
Comment · 2 years ago
Comment · 2 years ago
I have been working with streaming LLMs and Server Sent Events. It provides a very simple interface to work with, but you can feel SSE was never designed for this use case. As mentioned in the blog post:

> Annoyingly these can't be directly consumed using the browser EventSource API because that only works for GET requests, and these APIs all use POST.

It is not designed to send data to open a connection. You will then struggle to work with this streaming approach using frameworks and libraries that are based on the EventSource API.

Comment · 2 years ago
Nix sounds like a great fit as well, but my experience with it has not been that great, and I feel it is not ideal for Python. I recently gave Flox a try, which simplifies the use of Nix. I use it from time to time, but it has not yet replaced my development environment.

In your case, is maintaining 2 dev env not annoying?

Comment · 2 years ago
I started to develop in containers before VSCode introduced the dev container to keep my local machine clean. A few years ago, I switched to the VSCode dev container, and the integration is very good. Having the ability to have a dev environment ready per project is very neat. We started to adopt it in my company. As a team it saves a lot of hassle, and onboarding is much faster. However, we have encountered some issues, mainly when we want to work with GPU and PyTorch dependencies, and that is the opposite of pleasant! Otherwise, now each new project/repo I create comes with a dev container.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton