Author Topic: Rust for embedded  (Read 11790 times)

0 Members and 1 Guest are viewing this topic.

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Rust for embedded
« Reply #25 on: September 26, 2016, 04:02:01 pm »
engines

they are usually written in C/C++
sometimes directly in assembly

eLua can pass arguments, do foreign-calls, and get results
it works like a wrapper, but it adds a ton of scripting capabilities
 

Online Marco

  • Super Contributor
  • ***
  • Posts: 7175
  • Country: nl
Re: Rust for embedded
« Reply #26 on: September 26, 2016, 04:42:25 pm »
And with following good programming practices, it is not that hard to write good programs in C.

So, how many exploitable overflow bugs do you think are hidden in your internet facing code after using those good programming practices?
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 12014
  • Country: us
    • Personal site
Re: Rust for embedded
« Reply #27 on: September 26, 2016, 04:45:08 pm »
So, how many exploitable overflow bugs do you think are hidden in your internet facing code after using those good programming practices?
I don't know, obviously. But there is no proof that Rust actually helps anything here. Rust only helps if you never-ever use unsafe keyword, which never happens in a real program.

If anything, unsafe sections simply point out sections where you should look for exploits first. Convenient language for both sides, I guess :)
Alex
 

Online Marco

  • Super Contributor
  • ***
  • Posts: 7175
  • Country: nl
Re: Rust for embedded
« Reply #28 on: September 26, 2016, 04:58:33 pm »
It will inevitably happen in hardware interfacing code, it need never happen in anything else as long as you can swallow the performance overhead for runtime bounds checking.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Rust for embedded
« Reply #29 on: September 26, 2016, 06:15:43 pm »
as long as you can swallow the performance overhead for runtime bounds checking.

that's the same problem with ADA, and the reason why I was suggesting big-iron processors like PowerPC rather then small machines
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 22359
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Rust for embedded
« Reply #30 on: September 26, 2016, 06:57:41 pm »
It will inevitably happen in hardware interfacing code, it need never happen in anything else as long as you can swallow the performance overhead for runtime bounds checking.

But who cares about correctness[1] so long as it is fast? No, that's not a joke, unfortunately.

[1] or at least lack of easily and mechanically detectable errors
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline Feynman

  • Regular Contributor
  • *
  • Posts: 201
  • Country: ch
Re: Rust for embedded
« Reply #31 on: September 26, 2016, 07:20:44 pm »
We were and still are definitely lacking a decent programming language for embedded systems.

But since the C-beast is pretty much tamed (MISRA, Lint and stuff), I think there is no need anymore for another "high level" language for deeply embedded systems.
« Last Edit: September 27, 2016, 04:34:47 pm by Feynman »
 

Offline SreejitSTopic starter

  • Contributor
  • Posts: 25
  • Country: in
Re: Rust for embedded
« Reply #32 on: October 03, 2016, 05:03:03 pm »
Quote
We were and still are definitely lacking a decent programming language for embedded systems.

Agreed  :-+
« Last Edit: October 03, 2016, 05:04:49 pm by SreejitS »
My favorite place to hang out : FooBar
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Rust for embedded
« Reply #33 on: October 03, 2016, 05:25:07 pm »
Quote
We were and still are definitely lacking a decent programming language for embedded systems.
Agreed  :-+

I agree, too  :D
 

Offline autobot

  • Regular Contributor
  • *
  • Posts: 66
Re: Rust for embedded
« Reply #34 on: October 08, 2016, 12:54:41 pm »

I just wish to lower the entry barrier for embedded systems....

The arduino was very sucsessful in that but had big limitations. The mbed(and mbed  OS) could be the answer - combining global collaboration and code sharing, under a well designed structure(with a lot of attention to tools/security/power/cost etc) and somewhat higher barrier than the arduino in order to create higher quality in contributed code.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf