HN user

kgbcia

193 karma

I like text based forums

Posts1
Comments156
View on HN

why not Rust?

Anders: When you have a product that has been in use for more than a decade, with millions of programmers and, God knows how many millions of lines of code out there, you are going to be faced with the longest tail of incompatibilities you could imagine. So, from the get-go, we knew that the only way this was going to be meaningful was if we ported the existing code base. The existing code base makes certain assumptions -- specifically, it assumes that there is automatic garbage collection -- and that pretty much limited our choices. That heavily ruled out Rust. I mean, in Rust you have memory management, but it's not automatic; you can get reference counting or whatever you could, but then, in addition to that, there's the borrow checker and the rather stringent constraints it puts on you around ownership of data structures. In particular, it effectively outlaws cyclic data structures, and all of our data structures are heavily cyclic.

Notes on Guyana 2 years ago

Good read, sent it to my Kindle. It was the CIA who messed up that country in the modern era. Glad they found oil and now have insane GDP growth. Hope they don't ruin the Amazon rainforest nearby. Hope the racial tensions ease down and infrastructure is built up, so I can visit one day.

It's weird how these headlines are written in the passive voice and as to blame Hezbollah. "At least 20 dead as walkie-talkies explode in Lebanon as Israel declares ‘new phase of war’ against Hezbollah"

How about Israel detonates 3000 explosives in Lebanon.

It's not stupid, just you get what you pay for in LLM. I think LLM need some kind of reinforcement learning stage to instruct them what's true and false. obviously Google rushed this thing out of the gate to prevent ChatGpt from taking over their search space. I find myself using ChatGpt more often, since it's advertisement free at the moment.

We need more sites like hackernews. X /twitter used to be that , but it's now overwhelmed with bots and SEO. The more boring you make a site (no colors, no images, no links) the better the defense against spammers.

for ubereats , you have a chance to tip upfront which is basically a bribery since the company in California can't give their drivers a liveable wage. But at the same time,some drivers don't want to work shift. The only way forward I think is giving shifts whether 6 or 8 hours. But then drivers can't refuse riders, they will get vacation pay, etc

Seeing alot of online reviews that the AVP is too heavy. The front loaded weights but pressure on your cheeks and the straps put pressure on your temple. I like the idea of multiple monitors at high resolution, but not worth the pain on the face.

So I asked ai to make a datalog implementation in JavaScript.

// In-memory storage for voted users const votedUsers = new Set();

// Datalog-like rules function eligible_to_vote(user) { return isUserOldEnough(user) && isCanadianCitizen(user); }

function voted(user, bill) { return votedUsers.has(`${user}_${bill}`); }

// Custom rules function isUserOldEnough(user) { // Assuming age is stored in user object return user.age >= 18; }

function isCanadianCitizen(user) { // Assuming citizenship information is stored in user object return user.citizenship === 'Canada'; }

function recordVote(user, bill) { // Record that the user has voted on the specified bill votedUsers.add(`${user}_${bill}`); }

// Example usage const user = { name: "user123", age: 25, citizenship: "Canada", };

const bill = "bill456";

if (eligible_to_vote(user)) { console.log("User is eligible to vote.");

  if (!voted(user.name, bill)) {
    console.log("User can vote on this bill.");
    // Implement further logic for voting...

    // Record the vote
    recordVote(user.name, bill);
  } else {
    console.log("User has already voted on this bill.");
  }
} else { console.log("User is not eligible to vote."); }