Live data from Hacker News

Chicken Scheme 5.0

lists.nongnu.org

51–60 of 89 posts

Re: Chicken Scheme 5.0

#51
post #29

Earlier quoted context omitted.

Yes there is a really great statistics functional programming language that was founded on being a scheme for data science. Unfortunately the data scientist back then were not training in doing code well so the examples of the language got cluttered up but there is a great functional Scheme right in there. That language is R. http://adv-r.had.co.nz/Functional-programming.html I learned Racket (Lisp) and then realized…

Currently, this comment is heavily downvoted, which I do not understand. If Julia warrants mentioning as having a lispy core, then it’s at least as valid to point out R’s deeply lisp-inspired (and technical implementation based) heritage. I mean, scratch the surface on any of the FFI docs, and you’ll see that SEXPRs are right there lurking barely beneath the surface: http://dirk.eddelbuettel.com/code/rcpp.html EDIT:…

> and you’ll see that SEXPRs are right there lurking barely beneath the surface

Then why the surface? Why can't we just have a lisp with a good data-science library? Scheme seems the easiest of all the programming languages to me. I bet I can teach Scheme (not including advanced FP stuff though) to anybody faster than any other language although I have never used it to code anything serious (because libraries), I actually find it simpler than Python or even VBA. Phenomenally everybody seems so scared by the parentheses but these are not a serious problem given an intelligent IDE with proper outlining and highlighting.

Re: Chicken Scheme 5.0

#53

Would Chicken Scheme work ootb to code along with SICP?

There are minor differences, as SICP was written with MIT Scheme in mind, so you'll run into nonstandard procedures like "1+" not existing. In CHICKEN that one is called "add1". But for the most part, things should just work.

Re: Chicken Scheme 5.0

#54

Earlier quoted context omitted.

The parent asked for a Lisp dialect. R is not a Lisp dialect. It's ridiculous to claim there's a "Scheme" in R. R is not Scheme, it's not even close.

It’s much closer than people think. R originally built on a Scheme runtime, and the DNA of Scheme is still lurking pretty close to the surface. The meta programming facilities in R still look very lispy, and are used to good effect throughout the Tidyverse family of packages. If I had one wish, it would be to see something like the Tidyverse exist in something still closer to Scheme... like Racket.

If it's all Scheme under the hood, why can't it be backported easily?

Re: Chicken Scheme 5.0

#55

Is there some lisp that has offers nearly as powerful and fast data processing and tensor algebra facilities like Pandas and Numpy of Python? I would love to use a lisp but am not sure how well are they going to manage with huge 2-3D arrays.

You could always just use Hy, which is a clojuresque language that runs on top of python and can use its libraries.

Re: Chicken Scheme 5.0

#56
post #38
post #35

Earlier quoted context omitted.

> LISP is perfect for creating HTML programmatically 'printf' has always worked just as fine for this purpose.

Have you worked with SXML or Reagent or anything like that? You're not wrong, but your comment makes me wonder if maybe you just haven't seen a more elegant solution than string interpolation.

Seriously, having html represented as an actual tree structure that can be manipulated like any other data is so absurdly powerful it made it impossible to go back to anything else after that. Even JSX feels like a crude hack by comparison.

Re: Chicken Scheme 5.0

#57

Wow! It has been almost 6-7 years since I used Chicken Scheme, but I have fond memories of it. I wrote a program to automatize the creation of scientific reports in the Planck/LFI project [1]. The purpose was to quickly scan a large number of maps and power spectra produced by the data analysis pipeline, detect any weirdness in the data, and create a report in HTML format. The report included several tables and plots…

I remember writing bindings for Zephyros in Chicken Scheme, it was an enlightening and fun experience! and I just wanted to echo all your comments about it.

Re: Chicken Scheme 5.0

#58
Great to see this. I liked using Chicken on Linux, but unfortunately for me, I am on Windows and do not like using Cygwin or Mingw to compile it for Windows. There is no current MSVS solution as far as I know for now. I use Racket, Extempore [1], and I play with Shen [2] for my lispy appetite. Shen has been ported to Chez Scheme, which is also what Racket is being re-written in (sort of).

[1] https://extemporelang.github.io

[2] http://shenlanguage.org

Re: Chicken Scheme 5.0

#59

Is there some lisp that has offers nearly as powerful and fast data processing and tensor algebra facilities like Pandas and Numpy of Python? I would love to use a lisp but am not sure how well are they going to manage with huge 2-3D arrays.

Its dead now but there was http://lush.sourceforge.net/

Re: Chicken Scheme 5.0

#60

Is there some lisp that has offers nearly as powerful and fast data processing and tensor algebra facilities like Pandas and Numpy of Python? I would love to use a lisp but am not sure how well are they going to manage with huge 2-3D arrays.

Julia can show s-expressions for an expression I think...sorta what you asked, but not really I know. If you really want something like pandas + lisp then you probably need Common Lisp and have to dig for some libraries.

I'm a great admirer of Julia, but I doubt it would appeal to those seeking a "true" lisp/scheme. Even if it's has a sane macro system, and much of the same power. You can indeed see s-expressions (search for "s-expression") :

https://docs.julialang.org/en/v1/manual/metaprogramming/inde...

This nice talk mentions a bit on how Julia is (not) a lisp (if I recall correctly):

"Julia: to Lisp or not to Lisp?": https://m.youtube.com/watch?v=dK3zRXhrFZY

This might also be of interest: https://tpapp.github.io/post/common-lisp-to-julia/

As well as (maybe) clasp: https://github.com/clasp-developers/clasp

Post reply on HN