October 23, 2020, 11:51:04 AM

News:

The account sign-up bug has been fixed.



Alternatively, join us on Discord.
You can help CodeWalrus stay online by donating here.

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Jim Bauwens

1
I've met up with NeoCrisis, Adriweb, Levak, Laurae and PatrickD. (Not including family)

Always interesting to meet up with community members :)
2
Looking nice :)
3
Hmm, I wouldn't know then. The Due is quite a different platform than the Micro/Leonardo, it is possible that the firmware needs reflashing, but I'm not sure at all.
4
Quote from: DJ Omnimaga on April 03, 2016, 05:34:44 PM
One thing that helped with 3D in the past on the Nspire was switching to fixed points or integers instead of floating points. This is partly why Crafti runs over 3 times faster than Ncraft despite having not only textures, but also greater rendering distance. But I don't know if those are available in Nspire Lua.

In Lua number type is a compile time option, and most versions are built to use floats/doubles. So sadly there is no way to force pure integer usage (as far as I know).
5
Quote from: semiprocoder on April 03, 2016, 08:52:19 PM
Do you know how to do this with a due? Cause someone asked me for my micro, and I gave it to them to use for a while. I didn't see due anywhere in boards.txt.

If there is no entry, then the Arduino software normally will not recognize it. Isn't there anything like this: https://raw.githubusercontent.com/arduino/Arduino/ide-1.5.x/hardware/arduino/sam/boards.txt ?
6
You need to update the build params too, for my Leonardo I use:

leonardo.build.vid=0x0451
leonardo.build.pid=0xBEF3
8
Quote from: Tag365 on April 01, 2016, 02:39:46 PM
By the way, does moving local variable declarations outside a loop make the script run any faster?

I do not think that you will get a noticeable effect out of that.

Also, there are some nice Lua profiling tools out there, I've been using LuaProfiler to optimize a raytracer engine and the output is very useful. Possible you can use one at PC side.
9
Quote from: semiprocoder on April 02, 2016, 11:33:43 PM
I have an arduino micro and I tried hooking it up. Unfortunately, I do not have a temperature sensor so I just copied over your code, but instead of sending a temperature value, I send over a ping distance. The program works with the computer, and my calculator powers my micro, but I cannot get the calculator to communicate with my micro. I tried changing the vid and pin of my micro to match what you specified, but I am not sure I did it correctly. Do you have any suggestions as for how to connect my arduino?

Could you post the appropriate (micro) section of your boards.txt?
10
Interesting project!

I've tested it on my handheld, but sadly rendering per frame takes a couple of seconds. You probably tested on the computer or iPad software? Edit: I see that you mentioned this in your readme.

Looking at the code, you should try to avoid making tables to store data during rendering, as allocating data from the heap is an expensive operation. Of course, it does become more complex that way to store (for example) vector points, but you really do get a good speedup. The price being that your code gets larger and more messy. If you can avoid certain function calls, you should do that too.
11
Thanks :) I uploaded an archive with source code and instructions to ticalc.org: http://www.ticalc.org/archives/files/fileinfo/466/46659.html .
12
Consoles / Re: CHIP-8 emulator
February 23, 2016, 09:43:59 AM
If you want I have a small CHIP-8 'decompiler' I made in (PC) Lua, I used it understand what some games were doing when debugging an emulator.

Edit: all the files are here: https://github.com/jimbauwens/chip-8 (you might have to change the offset at the end of the decompiler)
13
My CX CAS is now a thermometer :)



Yesterday Critor was testing multiple boards and noticed that a TI-LaunchPad MSP-EXP432P401R was detected by his device (see https://tiplanet.org/forum/viewtopic.php?t=17981&p=197316#p197316). As the launchpad is just a USB CDC device, I thought that it was a bit odd that my Arduino did not want to work. So I decided to try and copy the VID en PID (device identifiers) of his Launchpad and fake it on my Leonardo. And that worked, the leonardo was recognized by my handheld! Testing showed that communication worked, so with a little bit of work I made this.
14
PC, Mac & Vintage Computers / Re: Nyan cat
September 08, 2015, 09:50:23 AM
Quote from: Streetwalrus on September 07, 2015, 08:56:14 PMStupid for a seasoned programmer, friendly for newbies, and at the same time bad for them because they get used to something that doesn't work the same way in any other language.

I have no issue with it all and regularly switch between multiple languages. In the end it's just a small detail that you need to take into account. In any case, Lua is just using more natural mathematical syntax (for example, they also use ~ for NOT, # for retrieving the length of lists, etc).
15
Quote from: DJ Omnimaga on September 07, 2015, 08:50:09 AM
Wait, we can pre-render graphics (eg rotations) in Nspire Lua? I didn't know it was possible.

You can scale and rotate images at any time, including startup. So you'd rather rotate/scale all your images once instead of doing so every 1/30st of a second (and thus slowing down your application).
Powered by EzPortal