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

loading third party agents in a sandbox with full custom model support. right now you need to either run that code directly (super dangerous) use a vm/container (slow and complicated) or a interpreter like lua (language bound, slow and weak security). wasm is perfect for this, its almost native speed, built for security and language neutral. onnx and coreml are secure but they can only do the actual model not all the code around it.

Yes, that's the right idea.

It's less about browsers, and more about server/edge/local-agent runtimes.

Wasm lets you have

- sandboxing (untrusted actor code)

- clean snapshot/restore

- portability of actor across machines

If you don’t need those properties, then yes ... native is obviously the better choice


thats not a controversial take. most left wing or even liberal people just think the moral and economic value from letting people live in a more developed country is worth the non existent security risk. both legal and undocumented immigrants commit less crime than us citizens so its actually a net positive for security.

no one i know really believes in nation states or national security (thats security OF the state, not the people who live IN it) or patriotism and being a "good citizen". our generation got over the "western civilization" propaganda. we know china is just another country that might be less rich and less democratic but its not the enemy, no country is. even the little kids know because they watch speed, he might not be the most politically literate person but his streams showed the whole world that we have more in common than the borders dividing us.

these laptop farms are only a problem because they run scams and steal personal info from hacked servers. if it was just about state and corporate secrets it would actually be a good thing, theres always a chance that info ends up leaked on public sites and transparency is always good.


how much is that minimum wage reflecting on the actual prices? from a google search the average location in france spends around 30% of its total expenses on wages and social insurance. if the total labor cost was half what it is (6eur minimum wage) that would imply around 15% lower prices, maybe 25 to be super optimistic.

the actual difference is more than 60 percent. hk is not really known for cheap rent and taxes cant fully explain the rest. what im trying to say is the insane prices in europe and usa are a choice.


Please use proper spelling and punctuation if you wish to be taken seriously.

Lower-case is neither cute nor a flex.


everybody i know that works at mcdonalds eat there at least once in a while. if you mean the ceo thats just your average top level exec with a private chef and a health nut wife who only eats out when its a place with a month long wait list and no prices on the menu. last time he had "normal people food" was way back when he was just a middle manager. its not because he knows its dangerous or unsanitary, he could always just tell the test kitchen people to make something that looks exactly the same but with organic fresh ingredients. he probably got to the point where even the concept of a burger sounds too low class for him.

I read this and chuckle because I'm the type to eat at a Michelin Star restaurant for dinner and then get Taco Bell for lunch the next day.

I don't think I'll ever consider myself above most fast food. I'd take a McLaren to McDonald's.


i just write svelte components with normal css. no complex hierarchy, no long class names, no forced structure, no runtime cost, global rules are opt in. everything exactly the way i want without hacks and boilerplate.

I do exactly the same.

> everything exactly the way i want

Can relate.


cato and reason are the only conservative/libertarian sites i respect. they actually believe in democracy and freedom, just defined in a different way from mine and focused on other issues that more liberal or leftist media ignore. reason has a lot of coverage on eminent domain laws and online censorship for example. compare that to fox but also more "educated" places like the free press or quillette and the difference is clear.

i dont know if it needs to be extremely verbose:

  fn prints_output(value: &str) @ mut std::io::Output {
    println!("side effects! value: {}", value);
  }
  
  effect CurrentTime {
    pub date_time: DateTime<Utc>
  }
  
  fn takes_context() @ CurrentTime dt -> String {
    dt.date_time.format("%H:%M").to_string()
  }
  
  // combine effects for shorter declarations
  // `?mut` is only mutable if the function declares it as `mut`
  effect TimeAndOutput = CurrentTime + ?mut std::io::Output;
  
  fn implicit_pass() @ mut TimeAndOutput {
    prints_output(takes_context());
  }
  
  fn creates_new_context() @ mut std::io::Output {
    // you only need to create the context thats not passed automatically
    implicit_pass(@CurrentTime { date_time: DateTime<Utc>::now() });
  }
effects can also have private fields and methods realized as a function pointer. that means `Output::print` can do different things in a simple cli app and a server framework with advanced logging. the calling function never knows the details.

syntax not final obviously and idk if it should be called "effect" or "context" so im using both. every function has to declare them but theres no big ergonomics hit when you have union effects and ide autocomplete. might not be easy to implement this in practice but the concept is simple, its basically some extra objects that get automatically passed through kinda like react context.

a function that takes no context and no &mut parameters is pure, if it takes only "shared" context its view (no side effects but depends on shared state). this can be used to let the compiler optimize better or guarantee security, like proc macros have to be pure or build.rs can only log to a provided output. of course you need to forbid unsafe code in the untrusted module to make it safe.


if the code is legally public domain doesnt that make it gpl compatible? this would be a non issue for linux, the only thing that matters is its not stolen code that was originally under a different license thats more strict in a incompatible way

anything where you need popups or tiled windows, code editing, rich text features more complex than "render markdown into a div", heavy content like videos, multiplayer, real time chat, anything that has to work offline... htmx is only good enough for something like a company homepage or simple shop not big complicated apps. its actually the same reason i dont like htmx, the whole "true REST" approach is about making everything depend more on the server with a thin client that can only do a couple very simple things with the loaded page. if your connection to that server is slow or unreliable your whole app breaks.

its also the perfect opposite of "true web3" and ethereums original vision, where you load all static assets from ipfs, most app logic is client side and the server or blockchain only comes in (json api, no html fragments or full pages) when you need to interact with other users. still believe in it even after the crypto bros took the name for a bunch of scams and hosted everything on cloudflare anyway. the only thing they have in common i could find is no bundling but for different reasons - everything on server vs compiled libraries shared between apps.


This is a mix of specious, and just outright incorrect.

https://en.wikipedia.org/wiki/Gish_gallop

Here are a few brief replies:

popups/tiling - use `<dialog>`

real-time chat - use websockets

slow/unreliable connections - well yeah this is a problem for any app...if you're delivering a 2MB paylaod to start the web app so that it doesn't need a connection, you're just betting that the user has a fast connection initially. what if that's not true either? back to square one. REST/Hypermedia encourages sending small payloads and working within those real constraints

I have no idea what you're talking about with "true web3 and ethereum". HTMX has nothing to do with web3 or crypto.


c# 14 added field backed properties where you dont need that `_health` in the first place you just write `public int Health { get => field; set => field = Mathf.Clamp(value, 0, 100)`. that way you never accidentally use the internal field without the checks. problem is unity still stuck on c# 9.0 so it might be years before you can actually use this in a game

Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: