4 ms·
An example J file because this link doesn't say much: https://github.com/jsoftware/data_jd/blob/master/csv/csv.ijs https://github.com/jsoftware/data_jd/blob/ma
by stefan_ 5y ago
An example J file because this link doesn't say much:
https://github.com/jsoftware/data_jd/blob/master/csv/csv.ijs https://github.com/jsoftware/data_jd/blob/master/csv/csv.ijs
- diarrhea 5y agos=. 0 2}.each _3 _1{<;._2 (;i{ccfiles),'/' That is... not pretty.
- bryanrasmussen 5y agoI 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.
- 0des 5y agoYou'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.
- razetime 5y agoJ 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.
- jollybean 5y agoIt'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.
- forgotpwd16 5y agoTbh that file says even less. It's like in discussion about pandas giving a link to read_csv.py in pandas source.
- jenny91 5y agoIt tells me everything I need to know about this language!
- mlochbaum 5y agoHere'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.ijs 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.ijs https://github.com/jsoftware/data_jd/blob/master/base/folder... https://github.com/jsoftware/data_jd/blob/master/base/table.ijs 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)