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

It was loads of fun. Decided to try out go, so the first couple of days were a bit slow but from then on it was pure fun. Even though the elves VS goblin game was a bit too much to handle in one single day...


Just so you know someone might do it before you! Atleast SAAB 93 but who knows maybe someday also a SAAB 9000.

https://www.nevs.com/en/ They build EV out of SAABs olf offices using a SAAB 93 as a platform. Check it out!


Thanks for the link. It will be interesting to see how they develop and if they have the soul of a true Saab.


You could try the SciPy Simulink look-a-like https://www.scilab.org/scilab/gallery/xcos


SciLab != SciPy


Same curious, it has Python extension but not really close to it.


The guy is who made utorrent also works for spotify


You can use to 2to3 command. So far I had no problems while using it.

https://docs.python.org/3/library/2to3.html


As a Swede owning an expensive apartment this sucks. Currently we only need to pay mortgage down to 75%, so a lot of young swedes will loose a great deal of money.


I tried doing sensor fusion with simulink and I thought it was horrible. Then me and my team switched to python instead and it worked really well. Never understood why to use simulink for other things then just controls.


Well they have a lot of science but they lack proper education.


Are they really selling an OS? It's free right? They sell something else with android but can't figure out what...


I can't tell if you're being sarcastic or not sorry.

Android is in itself a loss making project. It makes money as a marketing vehicle for other Google products (and therefore ultimately advertising).


In automotive, code is very rarely written it is mostly generated from simulink models. But yes software for aviation automotive, nuclear and medicine equipment are running safe C code.

It is mostly generated from a model not necessarily simulink. The generated code usually have rules for the code so no global parameters, no pointers etc can be used.


That's a great point. Often you need to run your system in simulation via a model. Generating the code directly from the model is one way to prove that your system matches the simulation.

Of course the modeling tools speak mostly C. This illustrates how C's weaknesses are mitigated in practice, and how much work prospective C-replacements must do to be competitive.


> This illustrates how C's weaknesses are mitigated in practice

Except there's likely a false sense of security in how well those mitigations work. Part of the problem with C is that later optimizations by the compiler can yield insecure code at a later date because of undefined behavior and compiler optimization techniques that take advantage of it. In other words, if your generated code takes advantage of any undefined behavior, there's no guarantee that the same code compiler on the same compiler with the same flags but with a different/newer version of that compiler will yield bug free code in both cases.

Can those models produce C code with absolutely no undefined behavior? Maybe? When's the last time someone did a close look at exactly what they were generating? Did they make sure to look again when the underlying architecture changed (even from one version of ARM to another...)?

See the somewhat recent Cap'N'Proto remote vuln[1] submission for a modern case of this, and a good discussion of the problem in detail.

1: https://news.ycombinator.com/item?id=14163111


Yeah testing needs to be done with compiled code on target card otherwise you can't be sure it works. Usually compiling code is super strict no further optimization then the standard can be used etc. Only specific cards and compilers are "trusted" to use.


Yes and the code/models go through extensive testing. Everyone in the industry knows that a callback because of faulty software will cost an insane amount of money. This is changing a bit since more and more work is going towards over-the-air update.


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

Search: