It’s actually kind of nice coming from C.

I’m reading this and all I can think is “yeah, I too would rather lose a limb than let a necrotic infection spread.”

C sucks to write and take care of memory, but it’s nice for super efficient code for use on smart watches. Samsung ditched it (tizen- native apps written in C) in favor of wearOS (java?), and their battery life is now less than half what it was.

All this talk of Rust I’m seeing makes me so sad Ada was never given a fair chance.

First time I’m hearing about it. Any fun gimmicks?

Holy hell Java on a Smartwatch?

frozen
link
fedilink
51Y

Holy hell Java on a Smartwatch?

WearOS is based on Android, which uses Android Runtime (ART) as the application runtime. ART uses Java (or any other JVM-compatible language, such as Kotlin) as the development language, but compiles the app to native code when it’s installed on a client device.

So… Kind of?

@CoderKat@lemm.ee
link
fedilink
English
5
edit-2
1Y

I hate writing code in either language. But at least what C has going for it is that it’s waaaay simpler than C++. Simple can be a really good thing. Sure, all those cool features can save you time, but they can also be gotchas that will cause bugs.

Though it is a balancing act. Too simple and you’ll make mistakes due to how much you have to repeat yourself or using unsafe equivalents (like using preprocessor directives to mimic features that C++ natively supports).

qaz
link
fedilink
11Y

deleted by creator

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 24 users / day
  • 112 users / week
  • 358 users / month
  • 2.03K users / 6 months
  • 1 subscriber
  • 1.7K Posts
  • 37.3K Comments
  • Modlog