r/programming • • Apr 09 '17

Kotlin on Raspberry Pi

http://hadihariri.com/2017/04/09/kotlin-on-raspberry-pi/
44 Upvotes

12 comments sorted by

5

u/Cilph Apr 10 '17

IMO a great replacement for Golang once it's more mature.

0

u/againstmethod Apr 10 '17

On pi? I dont think any JVM language is really. Even with modules the memory model is just not friendly to a low memory environment.

5

u/Cilph Apr 10 '17

Note the article is about Kotlin Native, which is LLVM-compiled with C interop.

2

u/againstmethod Apr 10 '17

Ah guilty of not reading carefully. Does it do threading?

2

u/Cilph Apr 10 '17

It's a technical proof of concept right now, with not much of the standard library present. I don't think it has threading facilities yet.

1

u/againstmethod Apr 10 '17

Same issue with Scala Native.

1

u/Cilph Apr 10 '17

Dont know their situation, but Kotlin Native launched like last week. Jetbrains put a dedicated team on it, so we'll see.

2

u/heisgone Apr 10 '17

The Raspberry PI 3 is very capable. It's comparable to an average Android phone. Microsoft has a kit that allow .NET development on the PI 3.

1

u/againstmethod Apr 10 '17

When you only have 1 gig of ram it's not desirable to cut off a chunk for heaps for every process. Modern cpp, or rust, would be a much more sensible choice.

We should strive to choose tech by requirements, not by personal preference or limitation.

2

u/heisgone Apr 10 '17

It's entirely dependent on the need. For instance, I just developed a control system for my brother's farm. I replaced an old embedded board running a C program I developed 10 years ago with a completely overkill hardware and developed in .NET. If you only have a few hundred users (in my case, I only had one) and your application use a fraction of the power, and you have no real-time issues, you go with what save you development cost.

2

u/againstmethod Apr 10 '17

The new Atom devices are actually pretty beefy, and support some of the more advanced instruction sets, with a very small power footprint. I think there is more reason than ever to use C++, or at least to use a language that can optimize for the target CPU.