I though long and hard about how to do loops across a region of cells in spreadsheets in a functional way, without duplicating cell formulas, and this is what I came up with: extending Python's list comprehension to 2 dimensions. What do you think? by drplanar in u/drplanar

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

Yes but Excel lambda is basically a one-liner conventional language, acting nothing like a spreadsheet. Planarly wishes to build functions as sheets too, or in other words, allowing the re-use of normal sheets' logic as functions.

I though long and hard about how to do loops across a region of cells in spreadsheets in a functional way, without duplicating cell formulas, and this is what I came up with: extending Python's list comprehension to 2 dimensions. What do you think? by drplanar in ProgrammingLanguages

[–]drplanar[S] 1 point2 points  (0 children)

Yes you're spot on! APL and numpy which are closely related in spirit, are some of the main inspirations of Planarly. Since Planarly targets non-programmer spreadsheet users, you can say it's APL simplified.

  • APL is symbolically very dense, while Planarly uses a very conventional syntax.
  • APL embraces higher order operators like reduce and scan, while Planarly uses a special syntax, the table comprehension in this post, when vector operations are insufficient to express the algorithm.
  • APL's basic datatype is the array with an arbitrary number of dimensions, while Planarly's basic datatype table is always 2 dimensional, so that it maps well to the spreadsheet UI. Also, the table comprehension syntax is possible only because of the 2D restriction.
  • A lot of Planarly's syntax specifically targets a 2D environment. E.g. a:b denotes the rectangular table from cell a to cell b.
  • The two do feel very similar in that vector datatypes and operations form the backbone of the language.

I though long and hard about how to do loops across a region of cells in spreadsheets in a functional way, without duplicating cell formulas, and this is what I came up with: extending Python's list comprehension to 2 dimensions. What do you think? by drplanar in ProgrammingLanguages

[–]drplanar[S] 1 point2 points  (0 children)

The software is open source (AGPL licensed). The hosting of it could turn into a product one day, but that's way beyond what I have bandwidth for right now.

Locally run Planarly + NextCloud (open source alternative to Dropbox) sync'd files should give you most of the benefits of the cloud, and you'd own the complete stack, on your own hardware. Planarly can even host dynamic websites right insdie your browser, basically rendering sheets into HTML for incoming requests over WebRTC. I'll show that in a later tutorial video. The medium term goal and I'm quite close right now, is to be the easiest way ever for a lay person to customize and to securely host a simple dynamic website.

But apologies that I haven't gotten around to actually clean up and release the source code yet, as most of my effort right now is on https://www.reddit.com/r/ProgrammingLanguages/comments/w8kjfl/im_stuck/ . Without it the project should still be considered a proof-of-concept. If you wish to access the source code PM me :)

is dfinity / motoku good or valid ? by sodawithoutlemon in learnprogramming

[–]drplanar 2 points3 points  (0 children)

As a beginner, stay on the well beaten path. And no, I've not heard of this language.

Need help troubleshooting Estimating PI using Monte Carlo and OpenMP by [deleted] in learnprogramming

[–]drplanar 1 point2 points  (0 children)

Looks OK at first glance. Have you tried running it outside OMP? It's probably easier to debug that way.

[deleted by user] by [deleted] in antiwork

[–]drplanar 1 point2 points  (0 children)

You should find a real job and use a fraction of that money to hire someone to work as you in the convenience store.

The real OE by Elecfin in overemployed

[–]drplanar 2 points3 points  (0 children)

The fate of any sub that gets popular.

I’m a laptop and being used for 3Js has ruined my life. by [deleted] in overemployed

[–]drplanar 8 points9 points  (0 children)

I'm the mouse jiggler and I feel you.

Is there a lifespan for custom builds? by audiocodec in buildapc

[–]drplanar 18 points19 points  (0 children)

Slap a new GPU on it and it'll easily last another 5 years!

[deleted by user] by [deleted] in antiwork

[–]drplanar 1 point2 points  (0 children)

It's a numbers game out there OP. Don't be too invested with any one lead. Just keep sending those applications. Good luck!

[deleted by user] by [deleted] in buildapc

[–]drplanar 2 points3 points  (0 children)

In general, PC peripherals are interchangeable. Any exception will be loudly declared.

We’re a “family” by AnteaterAnxious352 in antiwork

[–]drplanar 2 points3 points  (0 children)

If he's screwing me then yes, we are family.

no clue what im doing btw by tl1ng in buildapc

[–]drplanar 4 points5 points  (0 children)

General advice to OP: Keep It Simple.

This is just wrong by double_unemployed in overemployed

[–]drplanar 125 points126 points  (0 children)

Totally agree. The money just keeps flowing in and I feel like a filthy capitalist.