Better HN
topnewbestaskshowjobs
Log inSign up

kasperl

157 karma · joined Oct 31, 2016 (10y ago) · 29 submissions

Submissions

comment 3w ago · link · parent

:)

comment 3w ago · link · parent

I just started working on a compile-to-native approach you might appreciate :)

comment 3w ago · link · parent

Arguments like --greeting are the named arguments:

https://docs.toit.io/language/beginner/lists-and-functions/#...

The name argument is positional here.

comment 3y ago · link · parent

There are ways and we've seen successful integration of C++ libraries and functionality - but it is not what I would call easy yet.

Toit is evolving rapidly and we find that being fully open source helps our users tweak things where necessary. It's been a fun ride so far and we've got some pretty awesome and sophisticated use cases that involve custom C++ code.

comment 3y ago · link · parent

That's a fair and valid point. I firmly believe that live reloading of individual apps on your ESP32 during development is a big win for productivity, but clearly so is an established and mature ecosystem.

comment 3y ago · link · parent

I also really like MicroPython! Having said that, I have been working on an alternative to it for a number of years now -- primarily to provide a more robust and performant high-level alternative to C and Rust on the ESP32-family of chips:

https://github.com/toitlang/toit

I'd love to pick your brain and fully understand your experience with MicroPython. I've been doing programming languages for a number of years now, and I find that it is incredibly useful to understand what developers appreciate (and dislike) about the available stacks.

comment 3y ago · link · parent

Thank you! I'll try to get that updated.

comment 3y ago · link · parent

Thank you for the mention!

I have been working on the Toit language for the ESP32 for a number of years now -- and it has been an enjoyable challenge to build an open source stack capable of supporting live reloading on a micro-controller that can run for years on batteries.

https://github.com/toitlang/toit

comment 3y ago · link · parent

I find it strangely mesmerizing to watch sorting algorithms do their thing. Thanks for having fun!

comment 3y ago · link · parent

Fix for the UTF-8 issue on Windows is in the works: https://github.com/toitlang/toit/pull/1318.

Thanks for bringing this to our attention :)

11.

Running Advent of Code on a $2 microcontroller(medium.com ↗)

90 points · by kasperl · 3y ago · 11 comments

comment 4y ago · link · parent

When we wrote the initial version of V8, it was reasonably small :)

comment 4y ago · link · parent

No V8? The website explicitly says that Blueboat combines Google's state-of-the-art V8 JavaScript engine, process-level snapshots, and Rust to speed up everything from cold start to runtime performance.

comment 4y ago · link · parent

Author here. We have been working on enabling modern, high-level software architectures on micro-controllers for some time now and we're at a point where we feel like the bits we've built could use some scrutiny and feedback from the wider community. It is all open-source and it is ready for you to try out.

If you're interested in building software for embedded devices, but turned off by having to do everything in low-level C code running in a kernel context, we're definitely interested in working with you to build an alternative. A high-level, robust alternative that makes it easier to build quality services for the internet of things powered by micro-controllers like the ESP32.

15.

Show HN: Micro-Services on Micro-Controllers(github.com ↗)

3 points · by kasperl · 4y ago · 1 comment

comment 5y ago · link · parent

It is worth noticing that you enable and disable the serviceability for individual devices when you want to. Your unserviced devices are free and keep running your code.

https://toit.io/pricing

comment 5y ago · link · parent

Oh, and full disclosure: I'm the author of the blog post.

comment 5y ago · link · parent

Among other things, Toit uses the selector-based row displacement technique for building a compact method dispatch table that can be queried in constant time.

If you're into fast virtual method calls - also for dynamic languages - you might want to take a look at Karel Driesen's excellent PhD dissertation on the subject:

https://cs.ucsb.edu/sites/default/files/documents/1999-24.ps

comment 5y ago · link · parent

[Co-author of 'Revolutionizing Embedded Software' -- the linked thesis with the ... not so understated title -- and co-founder of Toit here.]

Yeah, there certainly is overlap in some of the core ideas, but the scene has really changed with the development of general-purpose microcontrollers like the ESP32 that can run for years on standard batteries and still pack a punch (it's a dual core 240MHz CPU). Also, the global connectivity options like NB-IoT and LTE-M allow devices to connect directly to the internet, which enables us to make them fully serviceable through a cloud-hosted API.

comment 9y ago · link · parent

Don't worry; strong mode will be the only mode going forward and it already is the only mode for Flutter. Not merely optional.

comment 9y ago · link · parent

Flutter (http://flutter.io) strikes an interesting balance here by (1) allowing just-in-time compiled, state-preserving "hot-reloading" during interactive development and (2) supporting optimized deployment using classical ahead-of-time compilation to native code.

Disclaimer: I work on the team at Google that builds the underlying language platform for Flutter.

22.

Single Codebase, Two Apps with Flutter and Firebase(m.youtube.com ↗)

8 points · by kasperl · 9y ago · discuss

23.

Cross-Platform Graphs on Mobile: Zero to One with Flutter (part two)(medium.com ↗)

1 points · by kasperl · 9y ago · discuss

comment 9y ago · link · parent

... and Dart is the runner up in terms of gaining popularity in 2016 according to TIOBE.

25.

Angular as used in production at Google – gift of the year?(medium.com ↗)

7 points · by kasperl · 9y ago · 2 comments

26.

Dart finally gets generic methods(news.dartlang.org ↗)

12 points · by kasperl · 9y ago · 1 comment

comment 9y ago · link · parent

There's a short interview with the author of StageXL, Bernhard Pichler, here: http://news.dartlang.org/2016/12/stagexl-10-chat-with-bernha....

comment 9y ago · link · parent

Very active development; see https://www.youtube.com/playlist?list=PLOU2XLYxmsILKY-A1kq4e... for a few recent presentations about the progress.

(disclaimer: I work on the Dart team at Google)

29.

StageXL 1.0: Fast 2D rendering engine for HTML5 inspired by Flash(medium.com ↗)

58 points · by kasperl · 9y ago · 19 comments