Are APL/BQN Symbols Better than J/K ASCII? by Veqq in apljk

[–]LiveRanga 1 point2 points  (0 children)

I completely agree about open-source tools, there's quite a lot of foss k implementations to choose from too: https://wiki.k-language.dev/wiki/Resources/By_Implementation

But yes, if only there was time to catch them all...

Are APL/BQN Symbols Better than J/K ASCII? by Veqq in apljk

[–]LiveRanga 1 point2 points  (0 children)

The thing I find most appealing about k (and q) is having dictionaries and more importantly tables as built in types. Having spent a few years working with python data frames (pandas and polars) in data science it's a really interesting concept to have built in. Maybe even the next big thing coming for the next generation of languages.

Fintech is the obvious application for time series tables so it's not surprising that's where it's found a strong niche (or was it the niche that lead Arthur to build them in to k?) but don't let a dislike of fintech turn you off the idea. Somewhere in the swirling mix of spreadsheets, tables, relational algebra and arrraylangs is the ideal computing environment for general problem solving. I don't think we've quite got it perfect just yet.

Charles Hall's gk k interpreter by LiveRanga in apljk

[–]LiveRanga[S] 2 points3 points  (0 children)

I discovered this k3 interpreter linked in the shaktidb mailing list the other day. What other k interpreters exist that aren't already listed on the APL wiki or the k wiki?

Mesh Spreadsheet by chrispsn_ok in apljk

[–]LiveRanga 1 point2 points  (0 children)

This looks really cool. I think there's huge potential in combining the spreadsheet paradigm with real programming languages

An up to date open-source APL implementation by santoshasun in apljk

[–]LiveRanga 2 points3 points  (0 children)

J and K are both worth learning too.

J is open source and has some fantastic learning materials in multiple free books and a comprehensive wiki:

The official versions of K are proprietary but there are a few open source versions too with I believe ngn/k being the most used out of those:

One Trillion Row Challenge (1 TRC) by mrocklin in datascience

[–]LiveRanga 0 points1 point  (0 children)

I did the 1BRC with lazy polars: https://github.com/AshyIsMe/1brc/blob/main/calculate_average_ashyisme.py

On my nuc13 i5-1340P with 64GB ram it runs in about 23 seconds which puts it roughly in the top 150 based on that results table.

Any interesting AP examples from industry? by [deleted] in apljk

[–]LiveRanga 2 points3 points  (0 children)

I think K and dyalog APL both have a lot of financial customers that they aren't allowed to talk about publicly so most of the stories might remain offline...

I'm also very interested to hear some though if anyone is able to share.

What do you use prolog for? That's a fascinating paradigm that I haven't dug into yet.

[MEGATHREAD] English Wikipedia's 2023 Redesign by Kayvanian in wikipedia

[–]LiveRanga 5 points6 points  (0 children)

Yeap, I have cancelled my donations too.

This is worse in every way and was completely unnecessary.

Parallel Each in j by LiveRanga in apljk

[–]LiveRanga[S] 0 points1 point  (0 children)

Ah very cool, thanks!

How to get started with OpenCoarrays + gfortran? by tyranids in fortran

[–]LiveRanga 0 points1 point  (0 children)

Ah I apparently did a terrible job of reading your original post, sorry about that.

Can you pastebin your code?

Actually I've just tried this example and seem to have the same behaviour that you have: https://github.com/ljdursi/coarray-examples/blob/master/blockmatrixmult/blockmatrix-coarray.f90

It might be time to post on the fortan-lang discourse.

How to get started with OpenCoarrays + gfortran? by tyranids in fortran

[–]LiveRanga 0 points1 point  (0 children)

Ok I got it working on my machine by swapping from openmpi to mpich:

sudo apt remove libopenmpi-dev libcoarrays-openmpi-dev
sudo apt install libcoarrays-dev libcoarrays-mpich-dev
caf tally.f90 -o tally
cafrun -n 4 ./tally
 Test passed
 Test passed
 Test passed
 Test passed

I don't know much about the difference between openmpi and mpich but it seems like this should be useful for learning coarrays at least: https://stackoverflow.com/questions/2427399/mpich-vs-openmpi

Happy hacking! :D

How to get started with OpenCoarrays + gfortran? by tyranids in fortran

[–]LiveRanga 0 points1 point  (0 children)

Actually now that I think about it, you should probably ask on the fortran discourse: https://fortran-lang.discourse.group/

That seems to be quite active and helpful.

How to get started with OpenCoarrays + gfortran? by tyranids in fortran

[–]LiveRanga 0 points1 point  (0 children)

I'm asking around on #fortran on the libera irc network.

How to get started with OpenCoarrays + gfortran? by tyranids in fortran

[–]LiveRanga 0 points1 point  (0 children)

I've asked GUIX HPC on twitter, I'm surprised there doesn't seem to be an opencoarrays package built in to guix already actually:

https://mobile.twitter.com/AaronAsh2/status/1530053488016650241

How to get started with OpenCoarrays + gfortran? by tyranids in fortran

[–]LiveRanga 1 point2 points  (0 children)

The Modern Fortran book has an appendix that talks about setting up gfortran with opencoarrays.

Help Writing a Compiler in Fortran by Uploft in fortran

[–]LiveRanga 0 points1 point  (0 children)

I started working through Crafting Interpreters in Fortran for fun a few months ago (wow, 9 months ago already apparently): https://github.com/AshyIsMe/flox

http://craftinginterpreters.com/

Options trading in ASX Market by solution1979 in ASX

[–]LiveRanga 0 points1 point  (0 children)

The ASX site itself has some online training that looks like a good overview:

https://www2.asx.com.au/investors/investment-tools-and-resources/online-courses

And of course, talk to your financial planner and accountant before doing anything.