Re: Tractatus Pico-Blaesicus, Accept-Language
Hi Jon, > A very nice piece of lisp code! The only part I didn’t like very much, > was the yellow color. As usual, I had to tweek the CSS. Here is my > variant: Very good! Many thanks! I have gladly inserted your changes into http://picolisp.com/tractatus > As I noticed that the clickable lines in the had tooltips > (title), I got tempted to check if they were depending on the > Accept-Language value (no,en-US;q=0.7,en;q=0.3) in my (Firefox) > requests, but I didn’t see any Norwegian tooltips. Are there other > PicoLisp demo apps where the displayed texts (or tooltips) are according > to the Accept-Language value in the request header? I’m just curious. > ;-) Currently the Accept-Language header is not observed, and instead the language is set explicitly. As you know, inserting (locale "NO" "no") at the beginning of the 'tractatus' function would do that (but then it should better be user-controllable as e.g. in the demo "app/gui.l"). ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Tractatus Pico-Blaesicus, Accept-Language
Hi Alex, A very nice piece of lisp code! The only part I didn’t like very much, was the yellow color. As usual, I had to tweek the CSS. Here is my variant: # CSS (de tractatus.css () (prinl "html {background-color: #eee;}") (prinl "body {margin: auto; max-width: 96ex; border: 1px solid #bbb; font: 20px serif; background-color: #ffd; padding: 2em 5% 4em 5%;}") (prinl "ul {padding-left: 3ex; list-style: none;}") (prinl "li {padding: 0.3ex 0;}") (prinl "a {text-decoration: none}") ) As I noticed that the clickable lines in the had tooltips (title), I got tempted to check if they were depending on the Accept-Language value (no,en-US;q=0.7,en;q=0.3) in my (Firefox) requests, but I didn’t see any Norwegian tooltips. Are there other PicoLisp demo apps where the displayed texts (or tooltips) are according to the Accept-Language value in the request header? I’m just curious. ;-) /Jon > On 7. Mar, 2016, at 19:25, Alexander Burger <a...@software-lab.de> wrote: > > Dear PicoLisp List, > > let me announce a strange little piece of [code?, documentation?, > pamphlet?] which I wrote up to summarize some of the positions and > philosophy of PicoLisp. > > In the spirit of Ludwig Wittgenstein I called it > > Tractatus Pico-Blaesicus > > and it can be accessed at > > http://picolisp.com/tractatus > > > On the top-right of the page is a "Source" link. > > The code is an interesting exercise in itself: > > The HTML entry function 'tractatus' consists mainly of a read-macro > which parses the embedded plaintext block into a '' structure, > with the hierarchy based on the individual indentation levels. > > To have it all together in a single source, the CSS "file" is in fact > the function 'tractatus.css', as well as the source download link > 'tractatus.l' (despite their names). > > > I suspect that the text is not complete yet, and probably neither > error-free nor particularly consistent. Let me know what you think > should be added or changed. > > ♪♫ Alex > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Tractatus Pico-Blaesicus
Nice to read, Alex. Besides the interesting technical implementation, concerning the content: I find the variety of all the platforms very interesting, where picolisp installs nearly out-of-the-box or is already available as a package, especially since the announcement of termux/picolisp on android. So this is a 'Pro' for me. Greetings Olaf On 07.03.2016 19:25, Alexander Burger wrote: Dear PicoLisp List, let me announce a strange little piece of [code?, documentation?, pamphlet?] which I wrote up to summarize some of the positions and philosophy of PicoLisp.
Re: Tractatus Pico-Blaesicus
Do you mean https://en.wikipedia.org/wiki/Merab_Mamardashvili ? > > Yeap. > And could you please provide us with an English version ? > The automated translators that I tried produced nothing readable > (but I guess the original is somewhat «tarabiscoté»). > > I cant. Mike
Re: Tractatus Pico-Blaesicus
On Tue, Mar 8, 2016 at 9:45 PM, Mike Pechkinwrote: > hi, Hi Mike, > in the beginning of year I've wrote special preface for Forth or coding in > general. In memory of Descartes. It describes zero step before coding. > in Russian: > https://medium.com/@tankfeeder/preface-8ea1e99d46f1#.yziufldc6 > > p.s. My philosopher is Mamardashvili Do you mean https://en.wikipedia.org/wiki/Merab_Mamardashvili ? And could you please provide us with an English version ? The automated translators that I tried produced nothing readable (but I guess the original is somewhat «tarabiscoté»). chri -- http://profgra.org/lycee/ (site pro) http://delicious.com/profgraorg (liens, favoris) https://twitter.com/profgraorg http://microalg.info (langage de programmation pédagogique) http://expressions.club/ (structure des expressions mathématiques) -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Tractatus Pico-Blaesicus
Hey, I love this Tractatus! Very unbiased and fair. (Even acknowledging 2.4!) On 07/03/16 19:25, Alexander Burger wrote: > Dear PicoLisp List, > > let me announce a strange little piece of [code?, documentation?, > pamphlet?] which I wrote up to summarize some of the positions and > philosophy of PicoLisp. > > In the spirit of Ludwig Wittgenstein I called it > > Tractatus Pico-Blaesicus > > and it can be accessed at > >http://picolisp.com/tractatus > > > On the top-right of the page is a "Source" link. > > The code is an interesting exercise in itself: > > The HTML entry function 'tractatus' consists mainly of a read-macro > which parses the embedded plaintext block into a '' structure, > with the hierarchy based on the individual indentation levels. > > To have it all together in a single source, the CSS "file" is in fact > the function 'tractatus.css', as well as the source download link > 'tractatus.l' (despite their names). > > > I suspect that the text is not complete yet, and probably neither > error-free nor particularly consistent. Let me know what you think > should be added or changed. > > ♪♫ Alex > -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Tractatus Pico-Blaesicus
hi, in the beginning of year I've wrote special preface for Forth or coding in general. In memory of Descartes. It describes zero step before coding. in Russian: https://medium.com/@tankfeeder/preface-8ea1e99d46f1#.yziufldc6 p.s. My philosopher is Mamardashvili Mike On Mon, Mar 7, 2016 at 8:25 PM, Alexander Burger <a...@software-lab.de> wrote: > Dear PicoLisp List, > > let me announce a strange little piece of [code?, documentation?, > pamphlet?] which I wrote up to summarize some of the positions and > philosophy of PicoLisp. > > In the spirit of Ludwig Wittgenstein I called it > >Tractatus Pico-Blaesicus > > and it can be accessed at > >http://picolisp.com/tractatus > > > On the top-right of the page is a "Source" link. > > The code is an interesting exercise in itself: > > The HTML entry function 'tractatus' consists mainly of a read-macro > which parses the embedded plaintext block into a '' structure, > with the hierarchy based on the individual indentation levels. > > To have it all together in a single source, the CSS "file" is in fact > the function 'tractatus.css', as well as the source download link > 'tractatus.l' (despite their names). > > > I suspect that the text is not complete yet, and probably neither > error-free nor particularly consistent. Let me know what you think > should be added or changed. > > ♪♫ Alex > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >
Re: Tractatus Pico-Blaesicus
Hi Erik, > It didn't occur to me that we could use the "!" syntax > as you did to generate css. Would something like this work as well, to > temporarily overide definitions in CSS files? > >(html NIL "My Page" (list *Css "!my-css-tweaks") NIL > ... ) > > I don't know if that would actually be useful, just thinking aloud. This should work. However, the browser still believes this is a file, and it will cache the result instead of calling it each time. So it is not a dynamic on-the-fly CSS generation. ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Tractatus Pico-Blaesicus
Hi Alex, > > The code is an interesting exercise in itself: > > The HTML entry function 'tractatus' consists mainly of a read-macro > which parses the embedded plaintext block into a '' structure, > with the hierarchy based on the individual indentation levels. > This is really neat! It's great to see a more "substantial" use of a read-macro in the wild. And I'm impressed (though not surprised) by how concise the code is :) > To have it all together in a single source, the CSS "file" is in fact > the function 'tractatus.css', as well as the source download link > 'tractatus.l' (despite their names). > It didn't occur to me that we could use the "!" syntax as you did to generate css. Would something like this work as well, to temporarily overide definitions in CSS files? (html NIL "My Page" (list *Css "!my-css-tweaks") NIL ... ) I don't know if that would actually be useful, just thinking aloud. > I suspect that the text is not complete yet, and probably neither > error-free nor particularly consistent. Let me know what you think > should be added or changed. > Looks pretty good to me. More links could be added, especially for the DB/Pilog/App Framework. Maybe some links to examples for 'Equivalence of Code and Data' too, and how it makes the language more expressive in practice? I also enjoyed the suspense generated by having to click through the menu. Thanks for sharing! -Erik
Tractatus Pico-Blaesicus
Dear PicoLisp List, let me announce a strange little piece of [code?, documentation?, pamphlet?] which I wrote up to summarize some of the positions and philosophy of PicoLisp. In the spirit of Ludwig Wittgenstein I called it Tractatus Pico-Blaesicus and it can be accessed at http://picolisp.com/tractatus On the top-right of the page is a "Source" link. The code is an interesting exercise in itself: The HTML entry function 'tractatus' consists mainly of a read-macro which parses the embedded plaintext block into a '' structure, with the hierarchy based on the individual indentation levels. To have it all together in a single source, the CSS "file" is in fact the function 'tractatus.css', as well as the source download link 'tractatus.l' (despite their names). I suspect that the text is not complete yet, and probably neither error-free nor particularly consistent. Let me know what you think should be added or changed. ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe