*** tpb has joined #tomu | 00:00 | |
TechAspirer | I messed up on the header guards; I fixed that issue; sorry for blaming your code when it was fine. | 00:09 |
---|---|---|
TechAspirer | xobs: This now compiles without issue and runs on Tomu https://github.com/kayabaNerve/LTE/blob/master/samples/Nim/FruitGuesser/main.nim | 00:28 |
tpb | Title: LTE/main.nim at master · kayabaNerve/LTE · GitHub (at github.com) | 00:29 |
TechAspirer | You do, of course, need LTE to do it though | 00:29 |
TechAspirer | MadHacker: Can I count on you to use and promote LTE when you get your boards? :P | 00:40 |
TechAspirer | (non-joke: I wouldn't even try it out for the first day or two. Best to learn with libopenmc3. Feel free to check it out after that and give feedback though.) | 00:41 |
TechAspirer | xobs: I heard you liked code | 04:00 |
xobs | TechAspirer: What's LTE? | 04:01 |
TechAspirer | So now you can send your Tomu hex strings and get a SHA512 hash back. https://github.com/kayabaNerve/LTE/tree/master/samples/C/SHA512 I'm also starting to question what I'm doing in life... | 04:01 |
tpb | Title: LTE/samples/C/SHA512 at master · kayabaNerve/LTE · GitHub (at github.com) | 04:01 |
TechAspirer | The name of my Tomu library | 04:01 |
xobs | Little Tomu Environment? | 04:01 |
TechAspirer | Luke's :P | 04:01 |
TechAspirer | Maybe I'll rename if I get other people | 04:01 |
TechAspirer | I've been supposed to finish up a web server. Instead I've been programming a USB board the has a red and green LED... | 04:02 |
xobs | Nim works, too?! That's very interesting, also. | 04:03 |
TechAspirer | Yeah | 04:03 |
TechAspirer | It compiles to C | 04:03 |
TechAspirer | I used the config from this: https://github.com/dom96/nimkernel | 04:03 |
tpb | Title: GitHub - dom96/nimkernel: A small kernel written in Nim (at github.com) | 04:03 |
TechAspirer | Created Nim wrappers around my headers | 04:04 |
TechAspirer | Now you can get started with Serial and LEDs in just 29 lines https://github.com/kayabaNerve/LTE/blob/master/samples/Nim/FruitGuesser/main.nim | 04:04 |
tpb | Title: LTE/main.nim at master · kayabaNerve/LTE · GitHub (at github.com) | 04:04 |
TechAspirer | Oh. But not everything works. | 04:04 |
TechAspirer | You can't create ref objects (pointers to custom types). It's not built for no OS, yes stdlib, so it thinks there's no stdlib and no OS | 04:05 |
TechAspirer | When this is just no OS | 04:05 |
TechAspirer | That said, C++ support has been even worse than getting Nim to work. I've completely dropped it. | 04:05 |
xobs | I have a vague wishlist for Chibitronics stuff to add Cortex-M0 support to tinycc and glue nim on top of that. | 04:08 |
xobs | I wasn't sure what would be required, and it's nice to know that nim is usable on embedded targets like Tomu. | 04:08 |
TechAspirer | https://github.com/kayabaNerve/LTE/tree/master/samples/Nim/Base | 04:10 |
tpb | Title: LTE/samples/Nim/Base at master · kayabaNerve/LTE · GitHub (at github.com) | 04:10 |
TechAspirer | Main.nim is the minimum needed | 04:10 |
TechAspirer | compileWindows.bat details the compilation process | 04:10 |
TechAspirer | panicoverride does nothing and is required with Nim to handle horrible errors | 04:11 |
TechAspirer | Mem Out of Bounds, segfaults... | 04:11 |
TechAspirer | Oh. There's also this modified makefile https://github.com/kayabaNerve/LTE/blob/master/Makefile.common | 04:11 |
tpb | Title: LTE/Makefile.common at master · kayabaNerve/LTE · GitHub (at github.com) | 04:11 |
TechAspirer | It includes/compiles the LTE code, doesn't run Git (pointless/my Git install is broken), and includes C flags `-specs=nano.specs -specs=nosys.specs` | 04:12 |
TechAspirer | Oh. It also includes this necessary Nim file called Nimbase but that's commented by default since not everyone has Nim | 04:15 |
TechAspirer | It's all in the README ;p I'll stop rambling and let you do whatever with it | 04:15 |
xobs | You could probably add targets for *.nim files, too... | 04:40 |
TechAspirer | xobs: Hmm | 04:54 |
TechAspirer | Good idea | 04:54 |
TechAspirer | Brb | 04:54 |
TechAspirer | xobs: Wait | 04:55 |
TechAspirer | This seems iffy | 04:56 |
TechAspirer | Because you're not supposed to compile Nim files individually | 04:56 |
TechAspirer | Just one which imports the others | 04:56 |
TechAspirer | Unlike GCC where you do that and then link | 04:56 |
TechAspirer | So all I can really do is compile main.nim | 04:57 |
TechAspirer | Not all *.nim | 04:57 |
*** technomancy has left #tomu | 04:58 | |
*** dtornabene has joined #tomu | 07:05 | |
*** dtornabene has quit IRC | 09:54 | |
TechAspirer | xobs: I got stuck compiling the generated C | 14:19 |
TechAspirer | Also, good morning | 14:19 |
*** TechAspirer has quit IRC | 14:50 | |
*** TechAspirer has joined #tomu | 14:51 | |
xobs | TechAspirer: How so? | 15:53 |
xobs | Also, good morning. | 15:53 |
MadHacker | o/ | 15:55 |
*** shalzz1 has joined #tomu | 18:06 | |
*** tinyfpga_ has joined #tomu | 18:07 | |
*** tinyfpga has quit IRC | 18:08 | |
*** shalzz has quit IRC | 18:08 | |
*** nrossi has quit IRC | 18:10 | |
*** nbags[m] has quit IRC | 18:10 | |
*** m2049r[m] has quit IRC | 18:10 | |
*** shalzz1 has quit IRC | 18:11 | |
*** kasbah[m] has quit IRC | 18:11 | |
*** duncan^ has quit IRC | 18:12 | |
*** duncan^ has joined #tomu | 18:14 | |
TechAspirer | xobs: The generated C. I can't compile them | 19:43 |
TechAspirer | All wildcards are evaluated at boot, not at execution | 19:43 |
TechAspirer | So wildcard nimcache/*.c returns nothing if there's no *.c | 19:43 |
TechAspirer | So you either have to run it twice, crashing the first | 19:43 |
TechAspirer | Or only use C which still works | 19:44 |
TechAspirer | Or use make nim then make | 19:44 |
TechAspirer | Until I fix this | 19:44 |
*** shalzz has joined #tomu | 20:33 | |
*** kasbah[m] has joined #tomu | 21:11 | |
*** nbags[m] has joined #tomu | 21:11 | |
*** m2049r[m] has joined #tomu | 21:11 | |
*** nrossi has joined #tomu | 21:11 | |
*** im-tomu has quit IRC | 21:33 | |
*** im-tomu has joined #tomu | 21:34 | |
*** im-tomu has left #tomu | 21:43 | |
*** im-tomu has joined #tomu | 21:43 | |
TechAspirer | xobs: Idea. Use run to update the serial connection with a frame every 60 seconds. Use main() to set that frame. Connect to a Nim window that uses Putty to manage the serial connection. Achieve a 100x100 8 color window | 23:23 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!