Email or username:

Password:

Forgot your password?
2,452 posts total
Devine Lu Linvega

(list (amb 1 2 3) (amb 'a 'b))

can have six possible values:

(1 a) (1 b) (2 a) (2 b) (3 a) (3 b)

sarabander.github.io/sicp/html

Avi Bryant

@neauoire I love amb. It’s a good gateway drug to probabilistic programming.

WimⓂ️

@neauoire A bit like junctions in Raku:
1|2|3, 'a'|'b'

Devine Lu Linvega

Practicing writing games entirely using string rewriting for the first time. It's rewiring my brain, I've never seen a computing paradigm as powerful as that before. I'm at a loss for words-

The runtime is 200 lines, the game source reads like english, it's fast as hell, it vitrifies whatever examples is on rosetta code, even Prolog(You had one job?!).

tictactoe: git.sr.ht/~rabbits/modal/tree/
runtime: git.sr.ht/~rabbits/modal/tree/
docs: wiki.xxiivv.com/site/modal
weep: rosettacode.org/wiki/Tic-tac-t

Practicing writing games entirely using string rewriting for the first time. It's rewiring my brain, I've never seen a computing paradigm as powerful as that before. I'm at a loss for words-

The runtime is 200 lines, the game source reads like english, it's fast as hell, it vitrifies whatever examples is on rosetta code, even Prolog(You had one job?!).

Show previous comments
program jiggler

@neauoire no shade on your code, i think it is fascinating and i love it

but to be fair to the prolog version, it implements a computer player, using the minmax algorithm to compute the best next move

not that you couldn't do it in modal! i'd love to see it in fact. betting it will still be way more concise and readable than the prolog version

poetaster

@neauoire ah, modal! Jeez. Fun. (looks for time behind bush at ground level).

Devine Lu Linvega

Anarchy means not necessarily the absence of order but an absence of rule.
wiki.xxiivv.com/site/modal#lam

Rick owens show in 2022, someone wearing a hat that's also a chandelier.
𝓼𝓮𝓻𝓪𝓹𝓪𝓽𝓱【ツ】☮(📍🇬🇧)

@neauoire i do believe anarchism needs a lot of mechanisms well known to everyone to organize and coordinate in case it becomes necessary.
i guess those come in the form of apps, tools, protocol, ...which could be considered meta rules. ...or maybe just established mechanisms people can use if they want to - and they have to be more precise and common goal/action oriented than mere social media toots/favs/boosts

Devine Lu Linvega

I'm collecting all the named stack combinators, if you know of some that are not in the list, or know alternate names for some of these, send them over with the name of the #concat language you found them in. Thank you!

A list of stack combinators and their stack effects notation.
Show previous comments
PypeBros

@neauoire I must admit that such list of names doesn't give me confidence into the power of the language. A bit too much CISC to my tastes...

David JONES

@neauoire omg DIG and BURY are so much better than ROT and -ROT

Floating Point Error

@neauoire
Wow, what a collection! Can I use these in one of my projects (stdlambda)?

Devine Lu Linvega

For a few years, I have had Vogue covers assigned to the various programming languages documented on xxiivv, unfortunately rick owens has never done a vogue cover or this would be the one for the Modal language.
wiki.xxiivv.com/site/modal

Aleph

@neauoire listen sometimes its worth breaking a trend because that is incredible lol

Janne Moren

@neauoire
I bet you could make a jacket like that feel really comfortable and pleasant. I'm still undecided on the language.

Leonard Ritter

@neauoire first disappointed as i lean in to discover that this is, in fact, broccoli; but then slightly impressed as i have never seen purple broccoli before.

Damien Guard

@neauoire What app/system is the window in white?

It has a gorgeous bitmap font!

Taulant

@neauoire I had not realized uxn has a clojure-like syntax. Looking very nice.

Devine Lu Linvega

So I didn't hallucinate, someone at the gym was playing a new Empire Of The Sun track, it's true, summer must be here now. 🌻

Devine Lu Linvega

Recently, I've been taken by this project of @wryl that might be of interest to folks diving into minimal virtual machines.

It's a string rewriting scheme with a single operator <>, similar to Thue, with the added capability of binding addresses in the input string to registers and manipulate them during the transcription.

It's an extremely elegant runtime, capable of emulating lisps, type systems, concatenative languages, all without any form of garage collection.

wiki.xxiivv.com/site/modal

Recently, I've been taken by this project of @wryl that might be of interest to folks diving into minimal virtual machines.

It's a string rewriting scheme with a single operator <>, similar to Thue, with the added capability of binding addresses in the input string to registers and manipulate them during the transcription.

People at the pierre soulages gallery near canvas covered in black paint.

Soulages said &quot;I am against limitations like perspective. Perspective is illusion, it&#39;s the opposite of presence&quot;
Show previous comments
kr1sp1n

@neauoire How do you run the lisp.modal example from your code repo? Where is 'define' defined? Or is this an old syntax, only running with the python implementation from @wryl ?

Jorge Acereda

@neauoire @wryl I guess you're aware of XL, the language behind tao3d.sourceforge.net/

If so, could you comment on the differences for those that, like me, aren't familiar with rewriting languages?

Kartik Agaram

@neauoire @wryl Bug report for the ANSI C implementation:

$ cat x.modal
<> (?x dup) (?x ?x)
<> (?x ?y swap) (?y ?x)
<> ( ?x pop) ()

.. (1 2 3) (4 5 6) swap pop dup

$ gcc -g modal.c -o modal && ./modal x.modal
01 .. (4 5 6) (1 2 3) pop dup

02 .. (4 5 6) dup

00 .. (4 5 6)

<> (?x dup) (?x ?x)
<> (?x ?y swap) (?y ?x)
<> (?x pop) ()

Devine Lu Linvega

"In her translator's note on an article on Babbage's computer, Ada Lovelace becomes the first person to clearly see that programming a computer is a distinct discipline from building the computer itself. This hardware/software distinction will be so well known as to seem obvious."
jeffreykegler.github.io/person

John Burns

@neauoire

And soon thereafter, was born the age old support statement:
-- it's the hardware
-- no, it's the software

🤔 😉

Devine Lu Linvega

Tudor sat at the piano and opened the keylid, after which he did nothing until he closed it over a minute later. He repeated this sequence twice, at which point the performance, which had taken four minutes and thirty-three seconds, was finished. Most people did not understand what they had just witnessed, and some did not realize anything had actually happened.

One listener reacted: “It sounds a great deal better than the majority of music that is sold today.”

eat veggies daily and survive

@neauoire @joemama

going to a john cage performance to get some peace and fucking quiet, 5/5, worth the $60 ticket

Devine Lu Linvega

In "The Road Towards A Minimal Forth Architecture"(1990), Mikael Patel builds toward a forth from only a handful of arithmetic and stack primitives. Here is an implementation of some of these primitives in Uxntal macros:
wiki.xxiivv.com/site/forth#min
Leah's blog post: leahneukirchen.org/blog/archiv
Patel's paper: github.com/larsbrinkhoff/forth

In "The Road Towards A Minimal Forth Architecture"(1990), Mikael Patel builds toward a forth from only a handful of arithmetic and stack primitives. Here is an implementation of some of these primitives in Uxntal macros:
wiki.xxiivv.com/site/forth#min
Leah's blog post: leahneukirchen.org/blog/archiv
Patel's paper: github.com/larsbrinkhoff/forth

max22-

@neauoire i see he uses bruteforce to find his little programs : maybe you have already heard of relational programming, with this you can synthesize programs, run them backwards (you give the output, it gives the input), make a quine generator (you have write a uxn interpreter in a relational language, then you query for a program that evaluates to itself). There is a very nice paper about microkanren ( webyrd.net/scheme-2013/papers/ ), a (minimal) relational language you can implement yourself.

@neauoire i see he uses bruteforce to find his little programs : maybe you have already heard of relational programming, with this you can synthesize programs, run them backwards (you give the output, it gives the input), make a quine generator (you have write a uxn interpreter in a relational language, then you query for a program that evaluates to itself). There is a very nice paper about microkanren ( webyrd.net/scheme-2013/papers/ ), a (minimal) relational language...

Go Up