HN user

vsroy

191 karma
Posts36
Comments47
View on HN
gist.github.com 1y ago

Show HN: NoSQL, but it's SQLite

vsroy
98pts39
news.ycombinator.com 1y ago

Ask HN: Has anyone used Devin for web-dev?

vsroy
21pts16
news.ycombinator.com 1y ago

Ask HN: Is there an AI-agent I can run on my CLI?

vsroy
1pts1
sihyun.me 1y ago

Faster convergence for diffusion models

vsroy
149pts22
news.ycombinator.com 2y ago

Ask HN: How do I profile my Postgres database?

vsroy
1pts2
news.ycombinator.com 2y ago

Ask HN: What is the correct way to deal with pipelines?

vsroy
1pts4
news.ycombinator.com 2y ago

Ask HN: How do I write a good request-for-feedback email to my users?

vsroy
2pts0
news.ycombinator.com 2y ago

Ask HN: What is the simple way to ensure internal services stay up?

vsroy
2pts1
news.ycombinator.com 2y ago

Ask HN: What is an error reporting service that does not have size limits?

vsroy
1pts0
news.ycombinator.com 2y ago

Ask HN: What is an simple logging aggregator?

vsroy
2pts1
news.ycombinator.com 2y ago

Ask HN: Has anyone else had trouble with Cloudflare R2?

vsroy
2pts1
news.ycombinator.com 3y ago

Ask HN: How does everyone keep track of user reactions to their LLM output?

vsroy
2pts1
news.ycombinator.com 3y ago

Ask HN: Good admin panels (read-only) for SQLite and Node.js?

vsroy
1pts2
news.ycombinator.com 3y ago

Ask HN: Realtime Subscriptions for SQLite?

vsroy
4pts1
foalts.org 3y ago

FoalTS – A Full-Featured Node.js Framework

vsroy
1pts0
news.ycombinator.com 3y ago

Ask HN: Best back end framework to pair with NextJS?

vsroy
3pts0
kaguya.chat 3y ago

Show HN: Practice Romance with ChatGPT

vsroy
1pts0
news.ycombinator.com 3y ago

Ask HN: Simple Logging / Stats Solution?

vsroy
2pts2
huggingface.co 3y ago

Llama 1.3B Trained on 200B Tokens for Commercial Use

vsroy
25pts7
persona.fly.dev 3y ago

Show HN: Personalized Chatbots from Journal Entries

vsroy
2pts0
news.ycombinator.com 3y ago

Ask HN: Best tutorials, blogs, etc. for utilizing ChatGPT to code?

vsroy
2pts1
news.ycombinator.com 3y ago

Ask HN: Improving at strategic thinking when shipping projects?

vsroy
1pts0
news.ycombinator.com 3y ago

Ask HN: Disk-backed NumPy for data analysis?

vsroy
3pts7
news.ycombinator.com 3y ago

Ask HN: Tools for Debugging Network Bottlenecks?

vsroy
1pts3
yeet.today 3y ago

Yeet: Kill the Process on Your Port

vsroy
3pts5
news.ycombinator.com 3y ago

Ask HN: Easiest graphing / data viz solutions for graphing logs?

vsroy
1pts2
news.ycombinator.com 3y ago

Ask HN: Why use logging when you already have tracing?

vsroy
8pts2
robertcunningham.xyz 4y ago

Hacker's Guide to Making Circuit Boards

vsroy
3pts0
webhighlighter.com 4y ago

Show HN: Web Highlighter – Turn Any Page into an Instant Forum

vsroy
4pts4
news.ycombinator.com 4y ago

Ask HN: Design palettes instead of color palettes?

vsroy
8pts2

The implementation is very clearly included, if you... scrolled down.

And the point is, you could easy do `const db = new Database("./database.sqlite")` instead.

The wrapper makes it so manipulating your database is just like manipulating a plain Javascript object.

Is the thing that's going on here that softmax can't push a value to 0, but by subtracting 2 softmax maps we can output 0s?

Thanks for the help. After upgrading my instance, all the query times dropped dramatically. The thing is, I did not even upgrade the instance that much (micro -> medium).

I'm guessing some important bottleneck was being hit, but I have no idea what it was (maybe 1GB RAM was causing spillover to disk in a query or something? like that?).

It seems important to understand what bottleneck I hit -- but frankly, I have no idea.

Next.js 13.4 3 years ago

Server actions is amazing. I finally will never need to write a single POST/GET request, it's the perfect RPC.

Thanks for the response.

One thing to clarify: It's a 300K x 300K similarity matrix, which means I have 300K embeddings. Each embedding itself only has dimension 512.

In other words, the similarity matrix is the similarity between each embedding & every other embedding in the 300K set of embeddings.

Regardless, I think Dask will be useful here.

I'm hosting an open-source S3 (SeaweedFS) on hetzner, and I'm doing a direct download from hetzner => the other cloud provider.

I'm not aware of speed test sites that allow you to select the location (i.e doing a speed test from cloud provider A to Hetzner).

I'll look into what's going on by running some CLI speed tests on hetzner.

Since no one seems to be commenting; this is very cool. Can you explain what you mean by TS-to-bytecode? Presumably; you're not interpreting JS. So, what are you interpreting; the types themselves? I guess this actually makes a lot of sense, since Typescript's type system is its own programming language.

This is super nice! I tried to build something similar (PDF reader x Stack Overflow; as you read you can see highlights that link to Stack Overflow style posts): https://chimu.sh (site is broken right now), but it didn't work out.

The thesis was to make annotated textbooks, so if 100 people read a book then the 101th person could benefit from the knowledge of the previous 100 people.

I hope you guys consider the multiplayer aspect of note-taking!

You can get pretty far using LMDB, specifically, its compound-key feature is quite good, and gets you a decent chunk of the relational model. Combined with Message Pack encoding, you can get an extremely concise data layer.

https://github.com/kriszyp/lmdb-js/discussions/170

I think there's a reason Tail Scale used a literal JSON file for up till 150 MB. of data: https://tailscale.com/blog/an-unlikely-database-migration/

So, I think the unconventional wisdom is correct.

Context: I see a bunch of people here recommending SQLite. I have a suggestion, try out LMDB. It's kind of like noSQL SQLite. It's a simple in-process K/V store with a few features like compound keys that allow you to model relational data well enough.

I recently used lmdb for webhighlighter.com (specifically the wrapper: https://www.npmjs.com/package/node-lmdb), and it was a fantastic decision.

A lot of people here say "use SQLite for small projects". But even using SQLite can be significant over-engineering. Running migrations? Writing SQL? That's too much effort for me.

For example: In my application, people can leave comments on a (what is effectively) a post. A SQL-native solution might have a table for comments, with foreign keys to post IDs. That's 10x more engineering then I want to do for an MVP. I just store all the comments as an array on a post. This means reads read all the comments and writes require reading all the comments, appending, and then re-writing. That's totally fine, and will probably scale me to 100x my current traffic.

LMDB-JS is great. It allows you to serialize arbitrary JS objects to LMDB using the message pack encoding system. This makes for some super concise code.

Here's my entire data layer: - Interface: https://github.com/vedantroy/grape-juice/blob/main/site/app/... - Implementation: https://github.com/vedantroy/grape-juice/blob/main/site/app/...

TL;DR -- I won't use SQLite, for, I don't know, my first 10K users?

Hey HN!

Web browsing is currently a solitary activity. You may discover a cool blog, but, unlike a Google Doc, you can't leave a comment on it for everyone to see.

Web Highlighter fixes this. Go to webhighlighter.com/upload and and paste in (almost) any URL to get a real time, collaborative version of the web-page. Share it with people and let them comment away.

Features:

- View other people's comments & reply to them

- Write your own comments by highlighting text on the page and hitting the comment button

- See other people's mouse cursors and what text they've currently selected on the web-page

- Chat with people by pressing the "/" key

- Everything is real time. Comments, mouse cursors, replies all update instantly.

With styled components my react might look like this:

``` <Question> {...} <Footer> < button> { ... } </button> <QuestionBadge> </QuestionBadge> </Footer> </Question> ```

That's easier than

``` <div className = " ... "> { ...} <div> <div> </div> ```