News for hackers. Stuff that matters.

brianguertin

Re:Ink: React for interactive command-line apps on Monday May 08, 2023 @07:40PM (#35868403)
A similar project is Mosaic.

It's exactly the same concept, but for Jetpack Compose, the primary toolkit used in modern Android apps.

You can use it in desktop JVM apps written in Kotlin.

https://github.com/JakeWharton/mosaic

Re:Firefox is the alternative to a Chrome hegemony on Monday November 29, 2021 @10:31AM (#29380967)
> how do you distinguish 'telemetry' from 'surveillance'?

Granularity. Telemetry data can be privacy-respecting (e.g. anonymously aggregated) while still being useful.

E.g. "143 people flew from NYC to LA this month" vs. "John Smith flew from NYC to LA at 2:00 pm on Tuesday."

Re:Ć Programming Language on Saturday October 09, 2021 @09:41PM (#28815028)
Also see Kotlin: https://kotlinlang.org/docs/multiplatform.html

In Kotlin you can write a library usable from C/C++/ObjC/Swift/Java/JavaScript.

Re:Paradise lost: The rise and ruin of Couchsurfing.com on Monday September 20, 2021 @10:39AM (#28594281)
Same thing happened while I worked at Turo. They pivoted from "If we all shared our cars, we won't need as many! Less traffic and better for the environment!" to "We need to optimize for people who are buying cars/fleets and renting them out like a business, as they bring us the most value"
Re:The End of OS X on Tuesday June 23, 2020 @04:57PM (#23620155)
Mac and Linux actually use the same printer stack: https://en.wikipedia.org/wiki/CUPS
Re:Await in Rust on Monday August 12, 2019 @05:08PM (#20680025)
Oh cool. And does that actually work? That's great.

And the syntax is surprisingly similar, especially considering we are supposedly comparing a low level language to a high level one.

Re:Await in Rust on Monday August 12, 2019 @11:48AM (#20676505)
You aren't the only one. In Kotlin, it's possible to use async/await without modifying your function signatures. Like this:

  val result = runBlocking {
    val one = async { doSomethingUsefulOne() }
    val two = async { doSomethingUsefulTwo() }
    one.await() + two.await()
  }
https://kotlinlang.org/docs/reference/coroutines/composing-s...

EDIT: actually this was wishful thinking, since both functions would block the main thread. The functions need to be modified to "suspend" for this to be truly async.

My ideal language would be something like Kotlin suspend semantics, except ALL functions were implicitly "suspend" functions. If that's even possible...