HNHacker News
TopNewBestAskShowJobs

chrispsn

1,055 karma · joined July 21, 2017

Sydney, Australia.
submissionscomments
chrispsn··on The story of ispc: all the links (2018)
Does ispc still offer compelling advantages versus icc or other compilers?
chrispsn··on K (2005)
I'd love to hear your views, regardless of whether you can find arcfide's.
chrispsn··on K (2005)
It applies element-wise across both arrays. What you're describing is more like an each-right (+/:) or each-left (+\:).

    2019-09-25 14:44:44 2core 3gb avx2 © shakti l test
     v:3 4
     v+v
    6 8
     v+'v
    6 8
     +'[v;v]
    6 8
     v+/:v
    6 7
    7 8
    
     +/:[v;v]
    6 7
    7 8
chrispsn··on K (2005)
FWIW, this is from 1993, not 2005. http://archive.vector.org.uk/10
chrispsn··on K (2005)
You might like ngn/k, an AGPLv3 variant. https://bitbucket.org/ngn/k/
chrispsn··on ngn/k, an AGPL K interpreter
Bizarre that this thread contains virtually no discussion of the technical merits of the end product (performance and size) - just the coding style.
chrispsn··on ngn/k, an AGPL K interpreter
ngn wrote:

i'm not trying to purposefully copy [Arthur's] style. i've always been trying to write shorter code - there are public traces of how that evolved in ngn/apl and in dyalog's ride. i acknowledge that after seeing some of arthur's code, including b, my mental threshold of what is considered acceptable dropped significantly. once you accept certain principles about the code, for instance that it's more important to be able to hold it at once in your head than to be able to explain it to the uninitiated, this style becomes more efficient and more pleasant

...

if you seek simplicity, this style is to a large extent discovered (as opposed to invented)

complicated things can be arranged in many ways. simple in few. that's why it always looks like entropy is increasing in the physical world :)

https://chat.stackexchange.com/transcript/message/52953241#5...

chrispsn··on Shakti, the new data platform from Arthur Whitney
https://gist.github.com/chrispsn/da00835bb122c42f429a084df83...
chrispsn··on Shakti, the new data platform from Arthur Whitney
At the least, 'range' (!3 -> 0 1 2) is now deferred (including with offsets eg 1+!3).
chrispsn··on Shakti, the new data platform from Arthur Whitney
A group of k enthusiasts working under the 'kparc' brand has been writing docs for this new in-development k:

https://kcc.kparc.io/ https://ref.kparc.io/

chrispsn··on Kparc/kcc: k crash course
You may also find this work-in-progress reference document useful: https://ref.kparc.io/
chrispsn··on Mesh Spreadsheet
You might like Guesstimate: https://www.getguesstimate.com/
chrispsn··on Mesh Spreadsheet
Possibly! Discussed this a little here: https://twitter.com/meshspreadsheet/status/10554309994530529...
chrispsn··on Mesh Spreadsheet
It should work on iPad, although it’s designed as a keyboard-preferred experience. What were you trying to do?
chrispsn··on Mesh Spreadsheet
Good point, thank you. It is added to the isssues log. I’d love to hear more about what would make Mesh more accessible for you and others.

https://github.com/chrispsn/mesh/issues/68

chrispsn··on Mesh Spreadsheet
Thanks for trying it out!

Yes - there are, or will be, other special fields, such as 'transpose' (so table headers would go in the first column instead of the first row). I was still figuring out which flags should be included, which is why it was under-documented.

Never expected sub-tables as a use case. Displaying nested cells would require a substantial re-write, but having logically nested tables may work... you'd just need to call the table making boilerplate function manually.

chrispsn··on Mesh Spreadsheet
Yes, correct.
chrispsn··on Mesh Spreadsheet
Agree on the speed.

Not every programming language is suitable but ClojureScript would probably work (no plans to support it right now though, gotta finish this one first!).

Considering hiding the boilerplate in the text pane.

chrispsn··on Mesh Spreadsheet
Yes! Regex, tables that can expand/contract (not just arrays) are two big ones.
chrispsn··on Mesh Spreadsheet
Yeah, I’m not happy with the download size either. It’s mostly the third-party JS parser.
chrispsn··on Mesh Spreadsheet
If you’d like to see more of Mesh in action, here’s a long form video of an early version showing how to write a primitive RSS reader in a Mesh spreadsheet and use it as the backend to a website. Back then typing into a blank cell created a name; it now creates a value and uses the cell position as the default name. Cell references also had to be preceded with $; we now just add cell names as properties of the global object so you don’t need a prefix.

https://youtu.be/4e1vNqMs0QI

chrispsn··on Mesh Spreadsheet
Thank you!
chrispsn··on Mesh Spreadsheet
Thanks! I honestly haven't developed much of Mesh in Mesh, because it's still early in the 'bootstrap cycle' and due to the parse delay issue mentioned above. It's also not nearly as robust to errors as it should be - text editors and traditional spreadsheets allow the user to 'sketch' ideas as discussed by Aaron Hsu [1].

I'd like to stick to a grid for writing 'functional core' logic, but there's potential to use a node interface at the surface of the 'imperative shell', to link up sheets or data feeds (push/pull). I was really impressed by Nodes [2] and I need to spend some time digging into Node-RED [3].

[1] https://www.sacrideo.us/un-structured-programming/

[2] http://nodes.io/story/

[3] https://nodered.org/

chrispsn··on Mesh Spreadsheet
Hi! Didn't expect this.

Mesh is still very much an alpha. Since the last public commit I have been experimenting with:

- different text representations of the sheet (to make diffs as readable as possible)

- ways to compress more functionality into the 'boilerplate' included with each sheet.

On the to-do list are:

- persistence (including fixing "save sheet as URL" and local load/save)

- selecting input cells with a keyboard while editing a formula

- a way to include 'standard' spreadsheet formulas such as 'SUM' on-demand in the sheet file

- case-insensitive cell references

- much more polish...

JavaScript's lack of a built-in parser is a real bummer, and it means that while Mesh's backend logic can be written as a spreadsheet, in Mesh [1], the file has to include a third-party JS parser, which significantly slows down the editing process. I'd also like a proper SQL and first-class table support, but we work with what is supported by Internet Explorer 11.

I remain confident that we can substantially improve the status quo of spreadsheets and, by extension, programming.

[1] https://twitter.com/MeshSpreadsheet/status/10195553103635046...

chrispsn··on What We’ve Built Is a Computational Language
On [1], you would probably like Mesh Spreadsheet. Spreadsheet-defined functions (via IPC), lambdas, dynamic arrays, text pane for showing and editing sheet-as-code, editing tables as a first-class data structure, all portable and free and based on JS as the formula language. https://github.com/chrispsn/mesh
chrispsn··on K7 Tutorial
As a companion to this tutorial, the community is building out a clickable version of the k7 reference card. It also covers the current state of Python-k integration:

https://k7contrib.gitlab.io/docs/

chrispsn··on Arthur Whitney's 'B' Language
Worth noting that in the Excel world (a primitive array language), for business users, dense formulas without spaces or new lines are the norm (although it is possible to use those features). Syntax highlighting and step-by-step evaluation features make it easier to work with.
chrispsn··on K7 Tutorial
Perhaps the performance difference is due to resource limitations in the Shakti trial?
chrispsn··on K7 Tutorial
According to this thread, it makes IPC harder: https://www.reddit.com/r/apljk/comments/82vcs4/comment/dyxb0...
chrispsn··on K7 Tutorial
I've played around with the Python integration - it's pretty smooth. See, eg, https://groups.google.com/d/msg/shaktidb/lQ3XSvFPDhw/DOlmmFg...
← PreviousPage 3 of 4Next →