--
You received this message because you are subscribed to the Google Groups "Newspeak Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to newspeaklangua...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/newspeaklanguage/5b4a79ab-a00c-4544-a8a1-50379066ac4bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/newspeaklanguage/CAOq-cNx1pVcrgH_4-1izORPJbjCr91k28wCB45JCjzkymMRFYw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/newspeaklanguage/CAP97Hn%3DiQz%3DQAdf-OV5O2V4LZEJRHj%2BuFYea7xGLntJY%2BzVaEw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/newspeaklanguage/CAOq-cNx%2B0nHq9%2BrpOSb7H%3DQU0dbrn%2BtFqLh67iT%3DUa3VQvMYKw%40mail.gmail.com.
If there is a planned way to produce live documents in Newspeak, that would be a big bonus. I am guessing such documetn could be written in Hopscotch, and support, apart from live code and results, things like basic document structure, bold/italics text, headings and links (which is all one needs, really) ?
Hi Gilad,(Responding to last 2 responses in one. Also changed the subject)Thanks for the description and links.I had a misunderstanding about this; In the past, I did read both(but without any deepeer digging). With the emergence of Newspeak Wasm, I generated an (apparently invalid) impression that Ampleforth is not the way for future Newspeak literate programming, or live documentation.Crudely speaking, I was making an assumption that any future live document like that in Newspeak would be a vfuel file, not an html file.
But now I see the ShapeRank document is a vfuel file - is it created as an App in Newspeak, and "deployed"? Yet I see the Madoko CSS, I do not quite "get" how it is all composed.
But maybe looking at the Newspeak help section in the IDE (as you pointed out) will help me with that. I need to get back to this when relevant.Currently I document my Newspeak study in org mode , and while I would love to think to switch to a more live version like Ampleforth, I need to avoid any more concurrent learning. I am slow as it is :)
Having said that, seeing the Ampleforth source in a quick review, maybe there would be a way to instrument the org_mode-to-html converter, to generate the class="evaluator", add the Madoko CSS, and inject the javascript lines, so an Ampleforth html would result.
ShapeRank is also amazing (not that I am qualified to make an evaluation - the examples remind me of Matlab arrays but I realize it is more than that) Thanks for those ShapeRank links as well both due to ShapeRank and as example of Newspeak live documents.
Hi Milan,
On Tue, Jul 13, 2021 at 3:47 PM Milan Zimmermann <milan.zi...@gmail.com> wrote:
snip
Crudely speaking, I was making an assumption that any future live document like that in Newspeak would be a vfuel file, not an html file.
One could generate HTML dynamically from Newspeak. That is what the IDE does for its help sections.
But now I see the ShapeRank document is a vfuel file - is it created as an App in Newspeak, and "deployed"? Yet I see the Madoko CSS, I do not quite "get" how it is all composed.Well, it's pretty ugly right now. You write the text in Madoko, and it produces an HTML file.
You add that file to the out/ directory where Newspeak produced your vfuel
(which is created from an app that runs the AmpleforthEmbedder while incorporating the ShapeRank libs).
But maybe looking at the Newspeak help section in the IDE (as you pointed out) will help me with that. I need to get back to this when relevant.Currently I document my Newspeak study in org mode , and while I would love to think to switch to a more live version like Ampleforth, I need to avoid any more concurrent learning. I am slow as it is :)I once created a live Newspeak presentation with the help of another org-mode fan, Bill Burdick (Bill, if you are listening by any chance, hello!). Bill created a live presentation manager called Lounge, using his own functional language.It was heavily reliant on org mode. The presentation is at https://www.youtube.com/watch?v=HW7sqMjTkI0 and discusses live literate programming (which is why it was essential to have a live presentation, rather than a conventional, dead, powerpoint or keynote or Prezi or whatever). The talk includes a demo of Ampleforth, which I captured separately in https://youtu.be/eBuiL6asa5Y.
Alas, it seems Lounge is no longer with us. In any case, it was not quite ready for widespread use. Madoko also has a presentation mode, but it interacts badly with Ampleforth.Having said that, seeing the Ampleforth source in a quick review, maybe there would be a way to instrument the org_mode-to-html converter, to generate the class="evaluator", add the Madoko CSS, and inject the javascript lines, so an Ampleforth html would result.Ampleforth is not dependent on Madoko.
I use Madoko because I wanted LaTeX quality output but that really matters mainly for math. So I imagine you can generate the div classes you want from org mode if that suits you. And of course, you can customize Ampleforth to recognize additional tags easily: look at the method #helpText (say, in ClassPresenter) to see how that works.
ShapeRank is also amazing (not that I am qualified to make an evaluation - the examples remind me of Matlab arrays but I realize it is more than that) Thanks for those ShapeRank links as well both due to ShapeRank and as example of Newspeak live documents.Thanks. ShapeRank is in its infancy, but builds on great traditions: above all APL, but also dataflow and reactive programming and adds just a little bit on top.
--Cheers, Gilad
Hi Gilad, thanks for follow up, a few unimportant notes inlineOn Tuesday, 13 July 2021 at 16:30:05 UTC-7 Gilad Bracha wrote:ok (less clear but nevermind - I suppose the App code is not in Newspeak? - no need to answer, I will ask if I get to looking into this)
Looking at it now .. so, basically, if I have an HTML string with a <div class='helpButton'>, this code in ClassPresenter>>helpText: can insert a Hopscotch(?) instance of HelpButton (assuming HelpButton was implemented) and the HelpButton instance will present itself as Html on that div?
Thanks. ShapeRank is in its infancy, but builds on great traditions: above all APL, but also dataflow and reactive programming and adds just a little bit on top.
On Tue, Jul 13, 2021 at 6:55 PM Milan Zimmermann <milan.zi...@gmail.com> wrote:Hi Gilad, thanks for follow up, a few unimportant notes inlineOn Tuesday, 13 July 2021 at 16:30:05 UTC-7 Gilad Bracha wrote:ok (less clear but nevermind - I suppose the App code is not in Newspeak? - no need to answer, I will ask if I get to looking into this)The app is in Newspeak. You can access it from the page. Clicking on a Tensor result will take you to a Newspeak inspector on it, and the IDE is there and you can look for class ShapeRankDemo.
Looking at it now .. so, basically, if I have an HTML string with a <div class='helpButton'>, this code in ClassPresenter>>helpText: can insert a Hopscotch(?) instance of HelpButton (assuming HelpButton was implemented) and the HelpButton instance will present itself as Html on that div?Pretty much. You need to define the mapping from div classes to Newspeak widgets, as ClassPresenter>>helpText: does for the widgets it uses.
Thanks. ShapeRank is in its infancy, but builds on great traditions: above all APL, but also dataflow and reactive programming and adds just a little bit on top.Does it use on some level APL syntax?No, that is a bridge too far. But the rules are quite similar: operations are automatically lifted
to multi-dimensional streams (which supercede multi-dimensional arrays).
--Cheers, Gilad