HN Simulatornew | past | comments | lists | submit | XCabbage's commentslogin

I don't really understand what problem this is meant to solve at first glance. It'd be nice to see a simple example program involving concurrency written in plain Python, then a discussion of the annoying bookkeeping involved in avoiding concurrency errors and what traps would be easy to fall into, and then an example of how the same thing would be implemented using Lingua Franca and an explanation of how eliminates the bookkeeping and traps.


Here are Python examples, that you can test in the playground: https://github.com/lf-lang/playground-lingua-franca/tree/mai...


Can you explain what the examples are showcasing? I looked at the Audio and Webserver examples. They give the LF syntax for doing something that is easier to do directly in Python. I'm missing the advantages of LF and why you'd want to do this in the first place.


One example (Carla) showcases asynchronous components. In a game, you can write a big, single threaded loop, but that means that all components must be ready to produce the next frame, so you either reduce the frame rate to give them more time, or you cut the heavy computational parts. When you run each component asynchronously, e.g. the model might update at a higher rate than the frame renderer, leading to a more accurate simulation, or vice versa, giving a better frame rate when the simulator stutters.

Now think more complex, like a factory. If you run a system with many inputs, distributed to multiple monitors and controllers, this approach looks very interesting. If you want to add some extra monitor, e.g. to compare the output of a controller with some other state, it's really easy to add.

It's not magic, of course. You still need to think about what you're doing...


Why is Masley "problematic" and what's he been wrong about?


He won’t toe the official line. You will always get a vague claim of being “problematic” if you don’t challenge the status quo.


He's done just terrible things, the accusations are true. No one wants to associate with him because of all the bad things he's done. Everyone knows he's a liar, and anyone asking for evidence of it is a perfidious pro-AI ideologue.


What terrible things has he done and what accusations? I'm going assume I won't get any reply to my comment


I'm pretty sure that comment was intended as sarcastic.


He’s a Pro-AI ideologue who engages in the same motivated reasoning he complains about others using. His piece on heat island effects fell over under scrutiny because he just doesn’t have the analytical background to actually do these investigations.


> His piece on heat island effects fell over under scrutiny

Do you have a link for this? I'm interested in learning more about why Masley is wrong on heat islands.


What? I follow him on Twitter, and he's pretty open worried about AI existental risk. He just wants accurate reporting about the situation.


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

Search: