News for hackers. Stuff that matters.
Re:J vs. K by Example (2005) by avmich on Monday February 19, 2024 @12:29AM (#39426499)
Awesome resource; however both J and K are evolving, so we either have multitude of various versions of the languages or a comparison which is outdated - referring to the latest versions of the languages.
Re:J vs. K by Example (2005) by abrudz on Monday February 19, 2024 @02:14AM (#39426966)
J is quite stable. In a set of simple examples, everything would be backwards compatible.
Re:J vs. K by Example (2005) by abrudz on Monday February 19, 2024 @02:03AM (#39426913)
Seems a bit strange to put spaces around (some!) J primitives, but not around K primtives.
Re:J vs. K by Example (2005) by 5- on Monday February 19, 2024 @05:10AM (#39427937)
i thought that was author's impression of the prevailing coding styles in each language.

i think the only consistently whitespace-abundant k (not q!) code i have seen is by bob armstrong: http://cosy.com/K/CoSy.htm

Re:J vs. K by Example (2005) by dang on Monday February 19, 2024 @04:35AM (#39427735)
Related:

J vs. K by Example - https://news.ycombinator.com/item?id=26041598 - Feb 2021 (13 comments)

Re:J vs. K by Example (2005) by behnamoh on Monday February 19, 2024 @10:21AM (#39430710)
Were APL, K, J, etc. ever used in production? Array programming seems like a cool idea (albeit being counterintuitive sometimes), and it's maybe one of the tersest syntaxes I've ever seen.
Re:J vs. K by Example (2005) by itishappy on Monday February 19, 2024 @11:27AM (#39431588)
I've heard it's seen limited adoption in finance.

https://github.com/interregna/arraylanguage-companies

Re:J vs. K by Example (2005) by mianos on Monday February 19, 2024 @04:47PM (#39435223)
I mainly work in financial markets. I have personally seen it used many times in some places at most of the places I have worked at. KDB/Q is an important component for historical data and order capture here at OSL. The only issue I have is there are few developers and they cost a lot of money. We are lucky we have a very good one.
Re:J vs. K by Example (2005) by devin on Monday February 19, 2024 @05:34PM (#39435647)
How much is "a lot"?
Re:J vs. K by Example (2005) by kristjansson on Monday February 19, 2024 @09:14PM (#39437275)
Re:J vs. K by Example (2005) by 7thaccount on Monday February 19, 2024 @04:48PM (#39435235)
APL came out a LONG time ago and was sold by IBM for awhile. If you look for Dyalog's customers you'll see some recognizable names. Volvo has their entire inventory system in Dyalog APL or something like that if iirc. Kdb+ is used a good bit on Wall Street and also by F1 racing and a few other places. I'm sure J is in use somewhere, but it's probably a bit rarer.

https://www.dyalog.com/case-studies/hercules.htm

Re:J vs. K by Example (2005) by jasonwatkinspdx on Monday February 19, 2024 @05:30PM (#39435618)
APL had non trivial uptake during its heyday.

J is apparently somewhat popular with actuaries and similar.

K/Q is used by a number of finance companies, via the KDB vector database. Here the selling point was that the overall system was great for in memory vector processing of stock tick data.

Arthur Witney also built a language named A+ while at Morgan Stanley that was used in production as an improvement over various previous APL apps.

They're odd languages but have found successful niches.

Re:J vs. K by Example (2005) by airstrike on Monday February 19, 2024 @04:40PM (#39435145)
I read the K (K9) manual[0] and it points to https://shakti.com/ as the authoritative place to download K, but the download link is gone and Wayback Machine hasn't helped

[0] https://estradajke.github.io/k9-simples/k9/Introduction.html...

Re:J vs. K by Example (2005) by liveranga on Monday February 19, 2024 @08:08PM (#39436849)
There's also a number of different open source implementations of various versions of K listed on the K wiki:

https://k.miraheze.org/wiki/Running_K

Re:J vs. K by Example (2005) by airstrike on Monday February 19, 2024 @08:55PM (#39437156)
Thanks, I appreciate the link. As it turns out, it is really hard to google "K"
Re:J vs. K by Example (2005) by 7thaccount on Monday February 19, 2024 @04:44PM (#39435186)
Yeah. Arthur Whitney's old company is Kx Systems which sells a vector in memory database for things like financial stock ticker analysis called Kdb+. I forget which version of K it is on. It mostly doesn't matter as most folks use the q-sql DSL on top of it. He then started another company called Shakti with some changes and what I guess is a later version of K. He had a download link up for a bit, but took it down iirc. I wish the site had more about the product listed, but we're not exactly the target audience (more for big banks).
Re:J vs. K by Example (2005) by acrispino on Monday February 19, 2024 @05:11PM (#39435452)
Look at one of the captures around the end of 2021.