[now with poll] L-OS 3, Homemade AVR based "tablet PC" and OS.
Poll: Wat kind of interrupts do you think I should add/focus on?
Ended May 15, 2014
Poll: What do you think is more important in OS applications?
Ended May 15, 2014
Ended May 15, 2014
Ended May 15, 2014
note the following lines of code:
(note: I just noticed the comment refers to "int". it's supposed to be "var")
what the first line does does, first of all, is it converts
into
here's the second line, edited so it's easier to understand
so it replaces "number" with "vX " and in this case, varCount is 0, so it replaces it with "v0 ".
now, this replaces it in the "input" String, and the input String is actually the partly compiled code so far. in other words, everywhere it says "number" in the code, is now replaced with "v0 ". Makes sense?
Lastly, the line "var number" (now "var v0 ") is removed, along with any other "var" related commands, at the very end of the process with these lines:
The reason it's in a loop is that if it isn't, the "replaceAll" actually doesn't replace all.
(worth noting: var is replaced with int during the cleanup stage, so the user would be able to use both "var" and "int" for variables)
oh right! the start of every line has a space. so try " int number" instead of "int number" (space at the beginning). It's like that because of how I coded the cleanup stage's method of removing unnecessary spaces and tabs. I *should've* fixed that, along with many other things, but I didn't feel like it, so it just stayed there.
This is one of the reasons I'm not sure I want it open source. My terrible coding practices
the problem should be here:
try remove that, I think some stuff you changed/are missing is making this not work.
It is indeed, though as my knowledge progresses and the system gets more advanced, I'm slowly moving towards modern technology.
well, there's a new video up right now:
Since this will be quite a big change and will take quite a while to port, optimize for 32 bit ARM (!) and re-write in C++. L-OS has become a bigger project than I expected. I'll probably make another thread for version 4 soon, but right now it isn't L-OS yet, just me getting used to the new platform and libraries.
Anyway, my point is that your computer seems quicker, yet is still lightweight. Also, I loved the idea of getting a kit to make my own mother board. The touchscreen also seems like it would be cool to mess with if you could plug in/Bluetooth connect a key board (like what you can do with an iPad).
Why are you posting in a year old thread?