News for hackers. Stuff that matters.
Re:Jd by stefan_ on Monday April 04, 2022 @08:44AM (#30905956)
An example J file because this link doesn't say much:

https://github.com/jsoftware/data_jd/blob/master/csv/csv.ijs

Re:Jd by mlochbaum on Monday April 04, 2022 @09:19AM (#30906288)
Here's one of the more central files that ties into how a Jd database is laid out:

https://github.com/jsoftware/data_jd/blob/master/base/common...

Not that I claim anyone in particular can read it of course. Jd uses a hierarchy of folder, database, table, column that's handled with an object system to share code between them. A folder is just a place to put databases and hardly needs to add anything, while the other levels have a lot of extra functionality. As an inverted database, Jd stores each column in a file, and accesses it using memory mapping.

https://github.com/jsoftware/data_jd/blob/master/base/folder...

https://github.com/jsoftware/data_jd/blob/master/base/table....

(I designed this system when I did some of the early work to turn JDB into Jd as a summer intern)

Re:Jd by diarrhea on Monday April 04, 2022 @08:51AM (#30906016)

    s=. 0 2}.each _3 _1{<;._2 (;i{ccfiles),'/'
That is... not pretty.
Re:Jd by razetime on Monday April 04, 2022 @09:12AM (#30906218)
J isn't really made to be pretty. It's made to be terse and simple to read once given enough learning effort, and it's made to be a consistent keyboard typable notation.
Re:Jd by jollybean on Monday April 04, 2022 @10:00AM (#30906725)
It's meant to be efficient, not pretty.

It's catching on within the AI community because the syntax matches well to the kinds of matrix operations common in that field.

I think Nvidia's next chip is going to have a compiler for jlang.

Also, I think they are starting to use it as an 'entry level' language for kids, you know, like grade school.

Re:Jd by bryanrasmussen on Monday April 04, 2022 @09:02AM (#30906117)
I would say it is not knowledge leaking, most languages leak knowledge so that if you are not familiar with the language but you do know some other programming languages you can sort of figure out what they do.

But some languages do not leak knowledge in this way.

There is the concept of beauty in programming languages that the expression of an idea should be succinct. This J code might be beautiful, but unsure.

Re:Jd by 0des on Monday April 04, 2022 @09:07AM (#30906175)
You're going too meta. Does it make you happy to write it? Does it fulfill its purpose? If yes, don't worry how it looks, it is fine.
Re:Jd by vidarh on Monday April 04, 2022 @10:57AM (#30907391)
To some of us the "does it make you happy" and how it looks are intrinsically linked.

One of the things that makes me happy is to write beautiful code.

Re:Jd by 0des on Tuesday April 05, 2022 @02:03AM (#30915771)
Did you type this from a Mac?
Re:Jd by vidarh on Tuesday April 05, 2022 @04:17AM (#30916521)
No. A Mac doesn't make me happy.
Re:Jd by forgotpwd16 on Monday April 04, 2022 @08:51AM (#30906024)
Tbh that file says even less. It's like in discussion about pandas giving a link to read_csv.py in pandas source.
Re:Jd by jenny91 on Monday April 04, 2022 @10:06AM (#30906782)
It tells me everything I need to know about this language!