Live data from Hacker News

Running Advent of Code on a $2 microcontroller

medium.com

11–14 of 14 posts

Re: Running Advent of Code on a $2 microcontroller

#11

Earlier quoted context omitted.

Sure. The easiest way is probably to install Jaguar https://github.com/toitlang/jaguar I would very much recommend the Visual Studio Code extension when you are starting out with the language. Will give you a lot of help and hints around the syntax. But you can use any editor. Run a program on the desktop with `jag run -d host myprogram.toit` Install the `host` package for non-embedded things like files, pipes and su…

Thank you very much for the instruction. It went smoothly. I just had to additionally run jag setup which I was clearly told by jag run ... Very nice experience so far. One issue I have is that when I use UTF-8 characters in strings they don't show up correctly when the program outputs them to console which also uses UTF-8. Not sure if I should configure jag somehow to make it work? With exactly the same setup (edito…

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 :)

Re: Running Advent of Code on a $2 microcontroller

#12

Earlier quoted context omitted.

Sure. The easiest way is probably to install Jaguar https://github.com/toitlang/jaguar I would very much recommend the Visual Studio Code extension when you are starting out with the language. Will give you a lot of help and hints around the syntax. But you can use any editor. Run a program on the desktop with `jag run -d host myprogram.toit` Install the `host` package for non-embedded things like files, pipes and su…

Thank you very much for the instruction. It went smoothly. I just had to additionally run jag setup which I was clearly told by jag run ... Very nice experience so far. One issue I have is that when I use UTF-8 characters in strings they don't show up correctly when the program outputs them to console which also uses UTF-8. Not sure if I should configure jag somehow to make it work? With exactly the same setup (edito…

[deleted]

Re: Running Advent of Code on a $2 microcontroller

#13
post #11

Earlier quoted context omitted.

Thank you very much for the instruction. It went smoothly. I just had to additionally run jag setup which I was clearly told by jag run ... Very nice experience so far. One issue I have is that when I use UTF-8 characters in strings they don't show up correctly when the program outputs them to console which also uses UTF-8. Not sure if I should configure jag somehow to make it work? With exactly the same setup (edito…

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 :)

May I have a suggestion?

I noticed that people encontering the language for the first time are surpised that they don't see examples of doing ESP32 specific things up front.

I know all of that is covered in the docs but maybe you could additionally a create single page meant to illustrate ESP32 specific functionalities provided by the standard library (similar to that: http://docs.micropython.org/en/latest/esp32/quickref.html ) and make it easily accessible from the front page?

Plus maybe how to read anything from terminal that print outputs to.

Re: Running Advent of Code on a $2 microcontroller

#14
post #11

Earlier quoted context omitted.

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 :)

May I have a suggestion? I noticed that people encontering the language for the first time are surpised that they don't see examples of doing ESP32 specific things up front. I know all of that is covered in the docs but maybe you could additionally a create single page meant to illustrate ESP32 specific functionalities provided by the standard library (similar to that: http://docs.micropython.org/en/latest/esp32/quic…

oh neat! (sorry, replying on this thread because only seeing this now and it’s the only recent enough to allow replies…)

i’ve just completed a solver for a similarly constrained system myself (STM32, 100-ish KB of memory): https://github.com/itizir/advent-of-code-2022

managed not to give up on any days, heheh! it’s day 24 where after my initial attempt i thought it would be absolutely impossible. but then next day an alternative approach popped in mind, phew!

Post reply on HN