Live data from Hacker News

Turtletoy

turtletoy.net

31–40 of 65 posts

Re: Turtletoy

#32
If you like this project, you may be interested in a similar project that I did a while back using using the turtle interpretation of grammars to represent connections between LEGO bricks:

https://github.com/jncraton/connectiongrammar

The "API" is admittedly quite poor currently, as I just quickly hacked this together on top of NLTK, but I was able to put together some fun results.

Re: Turtletoy

#35
I'm seeing some really interesting JavaScript techniques in the turtlevm.js[1] source.

This line in particular stands out: const code = String(work).trim().split("{").slice(1).join("{").slice(0, - 1).trim().replace("/0/", _turtlevmapi).replace("/1/", strCode);

It looks like the author is injecting the turtle code written by the user into a "work" function that removes dangerous objects (XMLHttpRequest, WebSocket, etc).

Can someone with experience writing a VM in JS point to a good reference on the topic?

[1]https://turtletoy.net/js/turtlevm.js?v=56

Re: Turtletoy

#36

If you like this project, you may be interested in a similar project that I did a while back using using the turtle interpretation of grammars to represent connections between LEGO bricks: https://github.com/jncraton/connectiongrammar The "API" is admittedly quite poor currently, as I just quickly hacked this together on top of NLTK, but I was able to put together some fun results.

That is really cool!

Re: Turtletoy

#37
post #18

Earlier quoted context omitted.

I am reminded of what i believe is the same thing constantly and can never find it. I always thought it was called something like Sodaracer but searches have been unsuccessful. I remember evolution algorithms to make the fastest amoeba wheels. EDIT: soda constructor by sodaplay. http://maciejmatyka.blogspot.com/2018/02/soda-constructor-re... EDIT2: from that link, here is a playable open source recreation linked at t…

Thank you for finding this! Me and my siblings used to play with this for hours.

thank you for inspiring the search that finally found it. I can't wait to get done with work today and go build some bots!

Re: Turtletoy

#38
post #10

Ahhh, love this site. I own an axidraw pen plotter, and because I'm feeling generous, I'll print every sketch made by people in this HN thread. <3

I fear the method I used here will be really inefficient on a pen plotter though: https://turtletoy.net/turtle/63b170ed47 (Lots of useless moves happen while the pen is up)

Theeere you go!

http://imgur.com/gallery/7PmEM5p

It didn't take too long, the pen up movements were fine

Re: Turtletoy

#39
post #38

Earlier quoted context omitted.

I fear the method I used here will be really inefficient on a pen plotter though: https://turtletoy.net/turtle/63b170ed47 (Lots of useless moves happen while the pen is up)

Theeere you go! http://imgur.com/gallery/7PmEM5p It didn't take too long, the pen up movements were fine

Oh, and here's a hyperlapse of the plot, I started recording about 20 seconds in.

http://imgur.com/gallery/UjtiQXy

This plot took about 3 minutes in total, the gears one took about 15.

Re: Turtletoy

#40
post #39
post #38

Earlier quoted context omitted.

Theeere you go! http://imgur.com/gallery/7PmEM5p It didn't take too long, the pen up movements were fine

Oh, and here's a hyperlapse of the plot, I started recording about 20 seconds in. http://imgur.com/gallery/UjtiQXy This plot took about 3 minutes in total, the gears one took about 15.

This is so cool!!!!!
Post reply on HN