Email or username:

Password:

Forgot your password?
34 posts total
⛧ esoterik ⛧

come to [a-z]{3}langs! we've got:

- conlangs
- esolangs
- catlangs
- doglangs
- batlangs
- exolangs
- mislangs
- sublangs
- etclangs...

⛧ esoterik ⛧

finding rational approximations of pi using #modal, no big deal

⛧ esoterik ⛧

this is not as cool as i had hoped because it just hardcodes the first 14 terms of the continued fraction for pi, i.e. 3, 7, 15, 1, 292, 1, 1, 1, 2, 1, 3, 1, 14, 2, 1, 1

oeis.org/A001203

(i did implement a generalized continued fraction which isn't hardcoded, but (A) it converges much more slowly and (B) it doesn't actually find the "best" convergents (e.g. 355/113) so it just didn't seem very useful.)

⛧ esoterik ⛧

#netbsd 10.0 featuring fvwm, uxnemu, xterm, conky, xclock

⛧ esoterik ⛧

i have rational numbers mostly-implemented in modal.

example:

> (str (mul (Q (+ sixteen ten)) (Q (- sixteen ten))))
...
57 ()-terminated list -64/25

git.phial.org/d6/modal/src/bra

i just can't seem to stop. i think computable real numbers will be possible too.

⛧ esoterik ⛧

here's the current version of binary arithmetic on natural numbers in #modal:

paste.sr.ht/~d6/92210f8df9c7fe

supports:
- comparison
- addition/subtraction
- summation
- multiplication/division/remainder
- exponentiation
- gcd/lcm

still some rough edges but it works well for fairly large numbers. on my machine it takes about 33s to compute 13^13; there is still a lot of room for optimization.

⛧ esoterik ⛧

language by @wryl

website describing modal by @neauoire: wiki.xxiivv.com/site/modal

implementation i'm using: git.sr.ht/~rabbits/modal

VOLTUR (with the good hair)

@d6 oh, very nice!

(wryl)

@d6 This is quite beautiful. Thank you for writing this!

⛧ esoterik ⛧

spent an hour playing with modal [1] and now i have a partial implementation of little-endian binary numbers (comparison, addition, and multiplication):

paste.sr.ht/~d6/caa78ae7cb0835

[1] wiki.xxiivv.com/site/modal

Devine Lu Linvega

@d6 Oh wow! Seeing your magic touch with modal makes me so happy! Do you use nil as a type marker? @wryl also started exploring binary representation and arithmetic, have a look! paste.sr.ht/~rabbits/a49d01434

⛧ esoterik ⛧

"i'm fine" i tell myself as i continue to scroll through the R⁷RS [1] standard.

[1] Revised⁷ Report on the Algorithmic Language Scheme (r7rs.org/)

mcc

@d6 In your opinion is this a good scheme

Ross A. Baker

@d6 I studied R5RS in school, and while it's just two more, that "7" hit me like a truck.

⛧ esoterik ⛧

lisp 🤝 forth
allowing dashes in names

⛧ esoterik ⛧

PR to add uxntal to github's linguist library: github.com/github-linguist/lin

in addition to github this library is also used by codeberg, forgejo, gitea, and other systems. having uxntal support there will be nice.

Devine Lu Linvega

@d6 damn okay okay, on week 1 of decadv too. When can we started playing with this in uxn11 :eyes_fast:

⛧ esoterik ⛧

recently @neauoire started working on a ternary stack machine -- so of course i had to jump in and help emulate balanced ternary arithmetic:

git.sr.ht/~rabbits/gyo

⛧ esoterik ⛧

cozy monochrome netbsd system for hacking on uxn

⛧ esoterik ⛧

if you didn't have access to floating point math and you wanted to mix a stereo u8 PCM sample down to a mono u8 PCM sample and have it sound ok how would you do it?

⛧ esoterik ⛧

currently i'm promoting each 8-bit sample to an unsigned short and averaging them, e.g. (left+right)/2.

it sounds ok but not great: as expected it gets quieter and it maybe also introduces some artifacts.

voxel

@d6 if you used every even sample for the left channel and every odd sample for the right, would you get an 'interleaved' mono sound ... or just horrible noise?

John Kaniarz

@d6 averaging is the correct way to do this. The problem you’re experiencing is non-linear human perception. (And maybe some cancellation of out of phase frequencies)

You’ll just have to fudge in a volume boost… which will probably take you out of 8-bit range.

⛧ esoterik ⛧

just watched @neauoire's #strangeloop talk. wish i had been there but it was still fun to watch later on.

i don't think they even say the word #uxn in the talk but the talk does relate to a lot of the work that they (and i and others) have been interested in for awhile now:

invidious.slipfox.xyz/watch?v=

gabrielbezerra

@d6 @neauoire the talk he asks people about in the beginning mentions uxn, the one about concatenative programming languages: youtu.be/umSuLpjFUf8

Devine Lu Linvega

@d6 I think it's more fun if it's presented as a way of doing things, than some sort of app to download. That's why I have stopped saying the name. ^^

⛧ esoterik ⛧

thinking of implementing tar for #uxn

would only support files and directories, and wouldn't do a lot of the fancier stuff, but combined with a tool for compression/decompression feels like it could be useful.

⛧ esoterik ⛧

choose your weapon

Anonymous poll

Poll

defederation
8
14.8%
denunciation
2
3.7%
decapitation
13
24.1%
defenestration
31
57.4%
54 people voted.
Voting ended 21 Jun 2023 at 3:16.
Ross A. Baker

@d6 You can pry the deploration from my cold, dead hands.

⛧ esoterik ⛧

my energy/enthusiasm have been at a low ebb recently.

but one thing i do want to come back to is my (in-progress) proof of concept chat server for uxn using uxnet: plastic-idolatry.com/erik/medi

if i get this working, i think i am going to try to create two extensions to uxnet:

(1) add a client/server option for connecting with SSL

(2) i want to try to implement TCP hole punching in uxnet, so that clients can talk directly (only using a server to start the connection)

⛧ esoterik ⛧

i think (2) would be especially useful for playing games. right now each game would need its own dedicated server, versus being able to use a shared "relay server" for all the different games/applications folks might use.

Go Up