#jlang — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #jlang, aggregated by home.social.
-
fast Burrows-Wheeler transform and inverese in #jlang
https://github.com/vmchale/burrows-wheeler/blob/504845dfdb9edd6fe782566de71c0caa991e579d/bw.ijs
-
A mathematics problem
How many 3-digit numbers are there where the sum of the cube of each digit of
the number is equal to the number itself?Thinking about this (from a book of recreational maths problems) gave
me the excuse to brush up on some #jlang programming.NB. Determine all the 3-digit numbers whose digits' cubes sum to the number
a =: 100+ i. 900 NB. All 3-digit numbers
fmt2=: 8!:2 NB. External function that turns numbers to strings
d =: fmt2 each a NB. Turn a to a collection of boxed strings
e =: ;"1 <each;d NB. Separate out each integer of each number
f =: (;"1) ". each e NB. Get rid of the boxes and convert back to numbers
g =: (+/"1) 3(^"0)~ f NB. Sum the cubes of the digits
(I. g=a){a NB. List numbers for which the sum of the cubes of the
NB. digits equals the numberI know that someone who is better at J than me could do this more
elegantly. If you are one of those people, I'd love to see your
answer.If you are just curious, the answers are
153 370 371 407 -
-
Make an #IXML grammar for #jlang so I can make a #literateprogramming tool.
https://gist.github.com/LdBeth/8277950958b964d0778d70ffd3d998de -
Tried to implement a matlab function in #jlang and it is a success.
-
lol, solved #vividstasis puzzle using #Jlang
-
lol, solved #vividstasis puzzle using #Jlang
-
Time based One Time Password in #Jlang
-
Time based One Time Password in #Jlang
-
Why J? (The programming language) https://code.jsoftware.com/wiki/Essays/WhyJ
#jlang #apljk -
I discovered the ArrayCast #podcast this week and have enjoyed it tremendously.
Fun content for #programming #language nerds; positive and constructive perspectives; and soothingly orderly conversations where folks don’t interrupt each other 😌
-
I just completed "Rucksack Reorganization" - Day 3 - Advent of Code 2022 #AdventOfCode https://adventofcode.com/2022/day/3
https://github.com/AshyIsMe/adventofcode/blob/main/adventofcode2022.ijs
#jlang #apljk -
I had a go at explaining forks, hooks and cap in J:
https://gist.github.com/AshyIsMe/12449fb69ad23b5d74d8989b293fe09d
#jlang #apljk -
#adventofcode is on! Of course day 1 is a single line of J. #jlang #apljk
-
Well, I think it's time to re-watch Tracy Harms' J Programming Language talk again:
https://youtu.be/RWYkx6-L04Q
#jlang #apljk #array -
This is a great read about j https://zserge.com/posts/j/
#jlang #apljk -
A nice blog entry illustrating the power of the APL programming language by
unpacking a 1-line program of Conway's Game of Lifehttps://wordsandbuttons.online/apl_deserves_its_renaissance_too.html
But while they say in that article that APL deserves a renaissance as Lisp had
with clojure, it already has had its renaissance in the form of the language J,
which was also designed by Kenneth Iverson (and Roger Hui at the time and others
since), has all the expressiveness of APL but uses the ASCII character set.
It's also open-source. You can download it and access more information at
https://www.jsoftware.com if you are interested. #jlang -
#introduction time!
I enjoy #programming #languages esp. #clojure & #FunctionalProgramming in #lisp. I follow #zig and cyclically use #FactorLang #JLang #dart #ruby #TLAPlus. Also #LaTeX and am a wannabe #typography nerd.
I love #linguistics speak #russian & have studied #french #latin #greek #arabic and many more.
I spend hours a week singing in #byzantine #chant and making #piano & #woodwind #music
I'm a #husband #father & #orthodox #christian #priest but here focus on the above topics.
-
@codesections Not #APL but I learn & write #J ( #Jlang)
It's tacit way of writing code + the plethora of built-in math, array and various utilities make math very fun-.Compared to APL it restricts itself to easily accesible ASCII so it's very easy to write code (no special character issue).
At the very least it should be a fun learning experience. If you are still wondering get started now!
Good Luck!