7 ms·
APL at Volvo
- whitej125 3y agoTIL APL...neat! Found this for others who want to play along. https://tryapl.org/ https://tryapl.org/ (Note: took a while but the special characters for producing lists, etc... are from "virtual keys" you can see at the very top of the web page)
- stirfish 3y agoI wanted to do some statistics, so I accidentally learned J (thinking it was R). J is like APL, but with digraphs (multiple characters) instead of special characters as symbols.
- clusterhacks 3y agoOk, so this is kind of funny but I also want to know - did/do you feel productive with J for stats work? Did you ever switch to R? If so, how would you describe the two languages to a non-programmer?
- stirfish 3y agoI don't think I ever actually did any stats with J, but I did play with it for a long time. J is like an old school text adventure where you start with a blank screen that reads "You are in the woods" and, before you know it, it's Monday morning and you're considering calling out of work because you've almost decoded some elvish runes you found on a rock. R is the single player campaign of a modern first person shooter, where you have infinite lives and your health regenerates if you sit and think for a while. This isn't a perfect analogy. Maybe J is high school Spanish class, and R is Google translate? I remember enjoying J as a language and R as a tool. It's exciting to express new things in J. It's easy to do familiar things in R. R also is really well documented - there was a time where experts were asking basic questions on Stack Overflow and answering them themselves, because that's where people look for documentation.
- persnickety 3y agoHow does one accidentally learn a different programming language?
- mandarax8 3y agoOn the J website the first sentence is: 'J is a high-level, general-purpose programming language that is particularly suited to the mathematical, statistical, and logical analysis of data.' So I can see him thinking he has the correct language.
- 0xdeadbeefbabe 3y agoSounds like a Neal Stephenson beginning.
- kstrauser 3y ago"The analyst's cheeks warmed as she looked around the room, realizing they were talking about something different than she expected."
- infostud 3y agoI've been trying to improve my J skills by doing the https://adventofcode.com/2022 https://adventofcode.com/2022 puzzles. I got stuck on day 7 because recursion in J is possible but an advanced level incantation. Day 1 was five short lines of code for Part One and another two lines for Part Two. Each line of code needed four or five long lines of documentation.
- nsxwolf 3y agoWhat's the story behind those characters? Did old APL machines have custom keyboards?
- hvs 3y agoThey weren't really "APL Machines" but computers used to run APL like IBM's APL2 had special keyboards like: https://www.clickykeyboards.com/product/1989-ibm-model-m-1391401-made-by-ibm-with-apl-keys/ https://www.clickykeyboards.com/product/1989-ibm-model-m-139...
- nsxwolf 3y agoLooks like Unicomp even makes a Model M with APL keycaps: https://www.pckeyboard.com/page/product/00UA41P4A https://www.pckeyboard.com/page/product/00UA41P4A
- kens 3y agoAn APL keyboard typically wasn't exactly a custom keyboard, but a standard keyboard with APL characters accessible through modifier keys. Often there were adhesive labels on the front of each key showing the special characters or you could get custom keycaps that had the special characters printed on the front. And of course many of the special characters were created through overstrike rather than separate keys. Way back, I programmed in APL on a DECWriter that had support for APL characters.
- cmrdporcupine 3y agoI have a keycaps set imitating the classic Space Cadet keyboard (from Symbolics Lisp workstations). The Space Cadet had APL tops and fronts [1], but these caps only have the tops presumably because the cost to get keycaps printed on the fronts would be way too high. Frustrating though. I've thought about getting the rest printed on clear plastic adhesive. [1] https://en.wikipedia.org/wiki/Space-cadet_keyboard#/media/File:Space-cadet.jpg https://en.wikipedia.org/wiki/Space-cadet_keyboard#/media/Fi...
- Jtsummers 3y ago
- deleted 3y ago[deleted]
- NikkiA 3y agoSlightly annoying that that site doesn't accept ι (iota) typed normally for some reason (it expects the U+2373 ⍳ 'APL iota', which isn't anywhere as easy to type)
- gnabgib 3y agoServer seems to be struggling? Found it in the wayback: https://web.archive.org/web/20210805225407/https://www.dyalog.com/case-studies/hercules.htm https://web.archive.org/web/20210805225407/https://www.dyalo...
- mlochbaum 3y ago"Who uses APL in production?" is a common question. These days, it's mostly those who haven't stopped using it. The historical use, while never quite mainstream, might be surprising to those who never realized APL had a commercial presence at all! - APL conferences were held every year from 1969 to 2004, minus '77 and '78 due to some unfortunate logistical issues (certainly not lack of demand). Conferences in the 80s regularly had >1000 in attendance despite both IPSA and STSC holding their own many years. My count (may not entirely rule out duplicates) is >1000 paper authors, and far more papers were submitted than accepted. https://aplwiki.com/wiki/APL_conference https://aplwiki.com/wiki/APL_conference - At least a dozen hardware manufacturers implemented an APL for their systems in the mainframe and minicomputer era (70s and 80s): https://aplwiki.com/wiki/Vendors https://aplwiki.com/wiki/Vendors - Usage stats from just one university in 1978: 7,300 active accounts and 5,400 workspaces (which would each store an individual project, or something like that). Used for all sorts of administration and even a student ride sharing service. Today of course, much of this would be done in Excel. https://aplwiki.com/wiki/Syracuse_University https://aplwiki.com/wiki/Syracuse_University - The first serious e-mail system was implemented in APL in 1972, and used by Jimmy Carter in 1976 for his presidential campaign: https://forums.dyalog.com/viewtopic.php?f=30&t=1629 https://forums.dyalog.com/viewtopic.php?f=30&t=1629 - I've heard but can't verify that one of the APL books (Gilman and Rose maybe) sold over 100,000 copies.
- bloaf 3y agoI've seen APL in use in industry for industrial simulation tools. I thought it was a pretty cool technical decision because of how good APL is at exactly the kind of vector math they were doing (I even offered to join their team just for a chance to learn APL.) Unfortunately, they were a little too excited about APL and went and built a bunch of APL GUIs on top of their simulations, which were giving them huge maintenance headaches.
- 7thaccount 3y agoI'm not a big fan of complicated GUIs or practically any GUIs to be honest. Their complexity is vast and code wise, they often make up a majority or at least very significant part of an application. I get it if you're selling a product, but if it's just an internal tool, I find it's usually just not worth it in the long run.
- spit2wind 3y agoIs that 425,000 lines of APL?!
- webel0 3y agoYeah, I wonder if that is 425k _formatted_ lines of APL? I'm blanking: wasn't there someone who wrote their hedge fund's entire data processing pipeline in 4 lines of APL?
- cduzz 3y agoCharacters maybe?
- rak1507 3y agoMost "production" APL is pretty verbose. See https://github.com/Dyalog/Jarvis/blob/master/Source/Jarvis.dyalog https://github.com/Dyalog/Jarvis/blob/master/Source/Jarvis.d... for example
- avgcorrection 3y agoAmong Us comment char.
- eminence32 3y agoSome of this seems readable to me (someone who's never seen APL before), but some of this is just wild: →0⍴⍨0∊⍴i←⍸127<c←⎕UCS w
- abrudz 3y agoBut to me as a relatively experienced APLer, it reads very clearly as "return if there are no non-ASCII chars in `w`" (and if there are, the indices of those chars will be stored in `i` and the code point of every char will be stored in `c`).
- wglb 3y agoThis is a good project story. Note that as in many high-throughput applications, non-gui solutions dominate, such as the 3270-like systems. A securities firm in Chicago called "Security APL" used APL as their internal language. It appears that the code was made into a product and is in use today: https://www.waterstechnology.com/management-strategy/1607440/security-apl-acquired-by-ambitious-checkfree https://www.waterstechnology.com/management-strategy/1607440...
- croemer 3y ago(2012)
- systems 3y agowhats going on with volvo, they also recently made a job post for clojure, and now this someone need to investigate their IT department
- 7thaccount 3y agoVolvo has used APL for ages, so I don't think there is anything weird about it. Someone just found the old case study on Dyalog's website from years ago and posted it I believe. It makes sense to me as it is a language suited for business folks. The Clojure needs are likely for an entirely different system.
- steveBK123 3y agoNow I really want to work there
- 7thaccount 3y agoFunny. In another thread on here a few days ago, someone asked if anyone used APL in production and I mentioned Volvo and posted this link.
- shrumm 3y agoThis website is pure nostalgia <3, pretty much every corporate page in the 90s looked like this! I was half disappointed they're using <div>'s and CSS for layout and not a bunch of <table>'s.
- rak1507 3y agoIn case anyone is curious about if the system is still used 12 years later, the latest thing I could find was from a job advert https://app.verama.com/job-requests/40623 https://app.verama.com/job-requests/40623 "This application is built in using Dialog[sic] APL which is a niche language and has its own challenge and that’s where second application Apollo comes into the picture which is created by another team Atlas aiming to create the Hercules using updated tech stack together with new functionalities." Seems like it's being replaced.
- p_l 3y agoI wonder how successful the replacement will be... inb4 end users will complain forever about shitty UI because they replaced fast 3270 with hunt&click gui[1] or slow website [1] Long ago, trying to deal with an issue related to not being able to make SWIFT transfers from my then-current bank, I ended up going to branch myself, and while trying to fix it, struck a conversation with the elder teller lady. She had words regarding "ergonomics" of the win32 UI that replaced her block terminal.
- kryptiskt 3y ago425,000 lines of APL code boggles the mind. It's like 10,000 pages filled with APL symbols. I guess that for normal non-APL programmers it's as close to an inscrutable alien artifact as you can find on Earth.
- jodrellblank 3y agoThis is valid Dyalog APL code, btw: :For i in 1 2 3 :If i > 2 ⎕←'Yes i greater than 2 happened' :EndIf :EndFor Repeat for other standard control flow, and OOP/Class work.
- 7thaccount 3y agoFuture historians may spend centuries trying to decode the Volvo Manuscript ;)
- pavlov 3y agoAn LLM can probably explain and translate it reliably. A model trained on the Internet has seen quite a lot of code and documentation about APL and its relatives.
- 7thaccount 3y agoOh I'm sure something could translate. I was just trying to be funny. Although aren't you assuming we won't have a large amount of knowledge loss in the upcoming centuries.
- nmz 3y agoI'm not an APL programmer but from what I heard, the opposite is true. (LLMs are really bad at array code.)
- xelxebar 3y agoNot at all. Using APL to solve real programming problems does lead you to cut concept space at different joints than mainstream programming, but once you have those concepts cached, APL isn't really "dense" so much as liberatingly direct. Instead of having a function "deleteNestedNodes" you just have "d t/⍨←(t=0)⍲d≥1" or some such, which 1) is actually visually shorter, 2) immediately gives you handles for modifying as needed, and 3) tells you algorithmic complexity on its face. That said, large corporate APL systems also use lots of standard architectural concepts like OOP, control structure flow, etc. and tend to have overall much less code density than you might expect, and the lines tend to be wicked short on average. So 425,000 lines isn't really "pages and pages of dense APL" in practice.
- Areading314 3y agoI'm really curious what a tech-focused car manufacturing company like Tesla would use for something like this.
- avgcorrection 3y agoThe closest I’ve come to APL is the default `.XCompose`, which has a lot of mappings to APL codepoints.
- natas 3y agomakes me want to buy a volvo
- simonbarker87 3y agoBy far the car I enjoyed owning the most was a Volvo V90. Good size and incredibly comfortable for long distance driving. We drove it from the UK to Portugal and back and it just ate up the miles, the thing practically drove itself.
- joostdevries 3y agoI was excited at the idea of ShapeRank. A modern APL successor aimed at tensors, vectors, arrays of unbounded length. Unfortunately work on it seems to have stopped two years ago. https://github.com/f5devcentral/shapeRank https://github.com/f5devcentral/shapeRank
- cianigga 3y ago[dead]
- Unfrozen0688 3y agoHate these ding dong ass systems as Windows admin as they are always ""CRITICAL"" and they put no redundancy or HA in so we cant patch the actual Windows server as there OMGE THIS IS CRITICAL THERE CANT BE ANY DOWNTIME. Niqqa Windows Servers NEEDS a reboot once a month.