[HN Gopher] FD 100
___________________________________________________________________
FD 100
Author : susam
Score : 30 points
Date : 2021-09-21 12:08 UTC (2 days ago)
(HTM) web link (susam.in)
(TXT) w3m dump (susam.in)
| icey wrote:
| This was a great blast from the past. A few friends of mine and I
| would write down instructions to draw crude pictures in Logo; the
| usual sorts of things you'd expect from kids (and one step away
| from calculator tricks that would result in 8,008,135).
|
| I'm sure lots of other kids did the same thing; kind of a fun way
| to sneak into writing programs - a low barrier to entry, and
| immediate results you could tinker with.
|
| Is there something popular like this today?
| parsecs wrote:
| A lot of kids (middle and high schoolers) these days have pet
| projects like making html based website and writing a discord
| bot in javascript. The fact that our district hands out
| chromebooks probably contributes to the trend.
| limaoscarjuliet wrote:
| fd 100? fd 0, 1 and 2 make sense. Perhaps 255. But not 100...?!
| rawling wrote:
| Looks like 100 pixels?
| silisili wrote:
| As someone who hasn't done graphics programming(or anything like
| this), it's amazing to me how 'simple' directives can yield such
| things. Is this type of logic still used in games/graphic
| programming today?
| scohesc wrote:
| Sort of related to games/graphics programming - There's an open
| source CAD program called OpenSCAD that allows you to create 3D
| models with code that can be simple, but gets complex fast. I
| personally tried using it to create models for 3D printing, but
| got overwhelmed and decided to go to other tools.
|
| https://openscad.org/
| MrLeap wrote:
| It can, and it does, sort of! There's a bit more boilerplate in
| most environments designed for shipping things, but one of the
| more high power/terseness activities is writing a shader that
| can render signed distance fields.
|
| https://www.iquilezles.org/www/articles/distfunctions/distfu...
| compose a few of these together and you can manifest some
| pretty nuts infinity fractals.
|
| Here's a video I made playing with the functions Inigo's
| provided.
| https://twitter.com/LeapJosh/status/1439876813258256385
| drcode wrote:
| Lovely post, though it's weird to end in saying that this "gave
| me a brief taste of functional programming"
|
| Turtle drawing is arguably the most non-functional, stateful
| programming paradigm ever invented.
| munchler wrote:
| You can think of it that way, but you can also think of a Logo
| program as a purely functional computation that follows the
| monad laws. Here's a Haskell package that implements it:
| https://github.com/aneilmac/worldturtle-haskell#readme
| Jtsummers wrote:
| Well, they say that _Logo_ gave them a taste of functional
| programming, which is a broader statement than turtle drawing
| (which, to be fair, is the bulk of the prior discussion). Logo
| was strongly influenced by Lisp and, consequently, is a multi-
| paradigm language including functional as one of its paradigms.
| jhbadger wrote:
| Logo is more than the turtle -- Brian Harvey wrote a whole
| series of textbooks for Logo that really stressed the
| functional aspect of the language
|
| http://people.eecs.berkeley.edu/~bh/v1-toc2.html
| Jtsummers wrote:
| https://news.ycombinator.com/item?id=28461915 - Discussion from
| about 2 weeks back, 13 comments.
___________________________________________________________________
(page generated 2021-09-23 23:00 UTC)