HN user

drwiggly

37 karma
Posts0
Comments34
View on HN
No posts found.
SpacetimeDB 1 year ago

This looks to be an in memory db, with a wasm runtime to host domain logic. The hand wavy part was how do they handle scale and clustering? Are we sharding the data our selves (atm it seems so.).

This is nice and all but the hard part is replication and consistency in a distributed database. In memory has its uses, also disk backed tables can have their uses. Pretty much normal databases already do this, just writing domain logic in stored procs is kind of annoying.

I'd imagine embedding sqlite in your binary using memory tables is equivalent at the moment. Well you'd have to write code to publish table updates to clients. I suppose it has that going for it.

I've seen some hand wavy docs about clustering but nothing concrete.

From what I'm gathering.

  Alice measures at angle X, gets value V1

  Calls Bob on the phone, okay I measured angle X.

  Bob measures at angle X, also gets value V1

  Bob measures at angle Y, gets value V2.

  Bob calls Alice back says, okay I measured angle Y.

  Alice measures angle Y, also gets V2.
The correlation here is nobody can do other measurements while the other party is in the process of measuring. Each party can't know the other party is done until traditional communication has happened.

If each party acted independently they would randomly change the state on the other side and each party would get what appears to be random values.

Really for LLMs you just need to have the model put it's output to an internal buffer, read that buffer and make sure it makes sense, then output that to the end user.

Makes sense to what. The LLM doesn't have a goal, other then to spew text that looks like it should be there.

start transaction;

select id from users where id = ? for update;

if row_count() < 1 then raise 'no user' end if;

insert into sub_resource (owner, thing) values (?, ?);

commit;

??

Its not the same. Anything in the nursery can cause cancellation of all async work. Cancellation is safe to unwind in all workers by scope exit rules.

Completion is just a type of cancellation.

Spawn 10 workers to lookup Dog in 10 different dictionaries, the first one to get the answer wins. This is hard to do with out language/runtime cancellation support.

Note below is a practical lib to get close to this https://blog.labix.org/2011/10/09/death-of-goroutines-under-... .. https://github.com/go-tomb/tomb/tree/v2

Its just cargo culting. A lot of programming advice/processes are fuzzy in a wider context. Generally they came to be in a specific context. Relating that context is hard. Eventually its picked up as a fad and spread around, just like a game of telephone we lose nuance and context. Pair this with imposter syndrome and low confidence, everyone tries to cover their ass and do what the current hype in the industry is doing.

What if I suggested an architecture where every 5th call had the overhead of serialization and network time. Also the reliability and concern issues that go with multi machine calls. Data syncing issues and network partition concerns.

Pretty sure most people couldn't reason about this system. They'd suggest instead of having network calls on every 5th call, lets really look at our use case and only insert them where we may have load issues and have to scale. Data state becomes a big concern, make sure we know where our data is at all times and is only passed when needed to be correct and not over pass it to be efficient.

This is postulating cultural breakage is in some part due to the latest round of high achievers being detached and not paying attention to the community at large. Its an American right of passage "I got mine".

I'd say its more influenced by political media being turned into a team sport to compete with entertainment. Why do people fall for this and turn a blind eye to hypocrisy of their chosen team? Why do people need to be attached to a group? Why is the group more important then their supposed values?

Most of this supposed culture war will doom human endeavors for the complete futility of winning something that doesn't matter. I suppose the new dark ages are needed if humanity must cling to the group even when its idiotic.

Is it possible to think of.. the roundness on the front disrupting the airflow over the top causing air to become turbulent and less dense on the top. Where as the air flow under the wing high higher relative density and the wing will rise to the less dense position?

Well in this case of a video game. There was a loader loading the image into ram then hot patching it. They deemed the loader copying it into ram was copying. IANAL but sometimes they take the term copying very literally.

The problem with your calling this example out, is that people will believe this stuff if down the rabbit hole enough.

Jan 20th Biden and Harris were supposed to be arrested and their pedo evidence was suppose to be shown to all, along with evidence of election fraud.

The next one is what March 7th?

A lot of people think an ancient all powerful being will re-appear and lift up adherents on high, and punish "bad" non believers.

Most databases have introspection capability, via sql. These tools should be using that. We shouldn't be making delta files, just check in schema defs along with normal code. The "migration" will consume the schema defs and generate a script that checks it against the db, and only execute schema commands that are needed. Most dbs can support drop/create of procs/triggers/other things quickly, some have alter support to just re-set them. Just never drop columns or tables, those require a human anyway, unless they're tiny. I wrote a tool that did this for mysql, and can be adapted for others as needed. Every branch could generate a database boot script easily, no crazy up down things all over the place and guessing on order.

Sure but the end user of this product doesn't know or care about the parts. This matters to those of us in the plumbing business and those businesses that would hire us to do their plumbing.

Ask them live support your app, esp code they didn't write. Or some kind of dev log from the ops people hunting down their bugs. Tricky fun frameworks then become a pita.

It talks about two processes that happen.

The first is cells emit a signal to other cells that it's infected, which causes the cell receiving the signal to shutdown replication facilities.

The second message sends out a call for the cops.

Covd2 stops the first signal but allows the second.

Suppressing the first signal means it can replicate faster because the cells in the area didn't stop their replication facilities.

Allowing the second means you get tons of cops showing up because every cell is now calling the hotline. So many cops in one area causes problems of its own.

The cops can't kill them fast enough because the cells aren't slowing down replication. So you get tons of virus cells and tons of host immune cells, and not enough organ cells doing whatever they do.

Anyway they're saying possibly manually taking replication inhibitors would substitute for cells 1st message not working, and allow the runaway infection to be killed by the cops.

There are issues with just blindly taking drugs for this. So they'd have to find out when its appropriate.

I was always curious if a p2p hosted game with host log shipping to a "validation" server would work for a game. People could run a tournament but validation servers would reject or accept a game. Not sure if humans would go for that. Maybe if the game was super up front about it.

Action games can't be server side fully. Latency would make the game unworkable. So you'll get wall hacks and speed hackers, and aim bots, and trigger bots. You can ban them post facto but its a continual cat and mouse game with detection and avoidance.