Hacker Newsnew | past | comments | ask | show | jobs | submit | rcfox's commentslogin

> For Linux, just use the emacs that comes with the distro.

Are the major distros shipping packages with tree-sitter support yet?


Yes. All of them.


"Distributed systems" doesn't have to mean some fancy, purpose-built thing. Just correlating between two Postgres databases might be a thing you need to do. Or a database and a flat text file.


I usually just have a uuid4 secondary for those correlations, with a serial primary. I've done straight uuid4 PK before, things got slow on not very large data because it affected every single join.


Do most people? Not everyone is Google.


Many people have more than 1 server that need to generate coherent identifiers amongst one another. That's not a "Google scale" thing.


Your comment heavily implied (to me) scaling databases horizontally. Yes, it's not necessarily "Google scale" either, but it's a ton of extra complexity that I'm happy to avoid. But a Google employee is probably going to approach every public-facing project with the assumption of scaling everything horizontally.

With multiple servers talking to a single database, I'd still prefer to let the database handle generating IDs.


Yeah, there's too much advice jumping straight to uuid4 or 7 PKs for no particular reason. If you're doing a sharded DB, maybe, and even then it depends.

Speaking of Google, Spanner recommends uuid4, and specifically not any uuid that includes a timestamp at the start like uuid7.


Just following the chat for a few minutes, people posted links to a couple of other locations:

Okaukuejo waterhole in Etosha National Park: https://www.youtube.com/watch?v=AeMUdOPFcXI (at the time of posting, a herd of elephants are enjoying the water)

Kalahari Desert: https://www.youtube.com/watch?v=ME0dPuBtzug


The elephants wandered off, and now a bunch of giraffes are drinking from the pond. Some of them even spread their legs wide to keep their feet from getting wet. Very relaxing to watch.


> Some of them even spread their legs wide to keep their feet from getting wet.

I always interpreted the spreadeagle pose of a drinking giraffe to be a way of bringing their head closer to the ground. Do they sometimes not do that?


Yeah, you got it.


I got 2 rhinos on my very first visit. Extremely cool.


I worked on creating a card game with a couple of my friends. We kept all of the cards in a Google Sheet, allowing everyone to easily edit or create new cards. Then, I wrote a script to compile the sheet into a card atlas so that it could be consumed by Tabletop Simulator. It worked amazingly well.

The only issue was that I had to run the script myself, since my friends were less technical. I'd probably see if I could setup a workflow in Github Actions to do it for me if I were to do this again.


In Python, every variable is either defined or imported in the file in which it's used, so you always know where to find it. (Assuming you don't do `from foo import *`, which is frowned upon.)

In C++, a variable might be defined in a header or in a parent class somewhere else, and there's no indication of where it came from.


How does this help when trying to determine the parameters a function takes? You have to either hope that the name is descriptive enough or that the function is well-documented. Failing that, you need to read the code to find out.


CMD-click shows you.


Is this just because LLMs don't have state?

As far as I understand it, as you have a back-and-forth conversation with an LLM, you have to provide the entire history of the conversation plus your new response each time.


Stateful models, e.g. RNNs, are Markov models too. Sometimes "Markov chain" is used to refer specifically to models with no hidden state, e.g. (decoder-only) Transformers.


With Typescript, I find it pretty eager to just try `(foo as any).bar` when it gets the initial typing wrong. It also likes to redefine types in every file they're used instead of importing.

It will fix those if you catch them, but I haven't been able to figure out a prompt that prevents this in the first place.


These days, I'd say always start with the YouTube tabs.


Youtube is just hopelessly broken on Firefox/Linux anyways. Half the time the home page doesn't even load.


What type of problems do you have? I use YouTube in Firefox on Linux almost every day and as far as I can tell it's working perfectly.

I don't go to the home page, though, only access videos via search (using !yt on Kagi) and by clicking around related videos.

I don't see any memory issues that the OP is talking about, either. Maybe uBlock is fixing it for me?


Same, it started this year. Once a week or two YT just refuses to render its page completely.


I only use ff on windows. No issue. I do have premium. May be adblocking YT is broken. I have ublock turned on too, but no issue.


I also went into that book blind. I was in grade 12 and some organization was offering scholarships to people who wrote an essay about the book. I had a twice-daily 45-minute bus ride to fill, so it seemed like an easy win.

I didn't end up finishing the book.


Probably not the type of organization to give a scholarship to those who write an essay critical of the work.

Myself, I read it at age 12 and bought its premise at the time. Therefore I mentally categorize Ayn Rand devotees as people with the maturity I had at 12. That's a pretty low bar they're failing to clear.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: