News for hackers. Stuff that matters.
Re:A new RISC-V version of uLisp by nanomonkey on Friday March 20, 2020 @11:29PM (#22644149)
Anyone use uLisp, Ferret (clojure->C++) and/or esp-lisp that can give a good recommendation on which one is most appropriate and capable on microcontrollers?
Re:A new RISC-V version of uLisp by nanomonkey on Tuesday March 24, 2020 @01:54AM (#22672368)
Or apparently microscheme!
Re:A new RISC-V version of uLisp by pjmlp on Friday March 20, 2020 @06:06PM (#22642139)
Great! Probably one of the first managed languages to properly support RISC-V.
Re:A new RISC-V version of uLisp by chrisseaton on Friday March 20, 2020 @06:19PM (#22642257)
Is it hard for managed languages to support RISC-V for some architectural reason?
Re:A new RISC-V version of uLisp by muricula on Friday March 20, 2020 @06:29PM (#22642347)
RISC-V is basically a MIPs ripoff with healthy architectural inspiration from ARM. There is a linux distro for RISC-V, and there's no reason Python or nodejs etc. can't run on it. https://riscv.org/2015/01/a-linux-distribution-for-risc-v/
Re:A new RISC-V version of uLisp by opencl on Friday March 20, 2020 @06:43PM (#22642468)
There is a perfectly good reason that NodeJS does not run on RISC-V Linux, which is that NodeJS has not been ported to RISC-V. Projects like Node (or rather the underlying V8 engine) have nontrivial amounts of architecture-specific code.
Re:A new RISC-V version of uLisp by microcolonel on Saturday March 21, 2020 @05:13AM (#22645432)
I can attest to that, though it looks as though the work involved in each part is decreasing.
Re:A new RISC-V version of uLisp by skratlo on Friday March 20, 2020 @10:03PM (#22643606)
That's a plus, at least the platform won't get infected by node.js virus
Re:A new RISC-V version of uLisp by russler23 on Friday March 20, 2020 @11:18PM (#22644093)
JS is inevitable, it just has a flattened curve.
Re:A new RISC-V version of uLisp by ampdepolymerase on Friday March 20, 2020 @08:57PM (#22643317)
MIPS is the original RISC one. RISC V is the fifth iteration of the line.
Re:A new RISC-V version of uLisp by CalChris on Friday March 20, 2020 @10:00PM (#22643594)
No, Stanford MIPS is a separate lineage from Berkeley RISC.

  RISC
  RISC II
  SOAR
  SPUR
  RISC-V
https://www2.eecs.berkeley.edu/Pubs/TechRpts/2016/EECS-2016-...

As for the original OG RISC, I think that'd be the Cray 1.

Re:A new RISC-V version of uLisp by FullyFunctional on Saturday March 21, 2020 @12:03AM (#22644320)
As always, the obsession with firsts is a fools errand. The IBM 801 and the CDC 6600 are often mentioned as some of the earliest candidates. As so often with technology, it's a function of the context. In the case of RISC, integrated circuits were reaching capabilities that made it worthwhile reconsidering the conventional wisdom.
Re:A new RISC-V version of uLisp by CalChris on Saturday March 21, 2020 @02:46PM (#22648848)
The 6600 didn't have general purpose registers. It had operand, address and increment registers. The 801 development began in October 1975. The Cray 1 had been in development for 4 years when it was released in 1975.

So I'll go with the Cray as being to OG RISC. But yes, firsts don't really matter except to say it sure wasn't the Berkeley RISC or the Stanford MIPS.

Re:A new RISC-V version of uLisp by msla on Saturday March 21, 2020 @06:27AM (#22645639)
Never seek after "firsts" too avidly. I've seen people claim the rock is the first computer, and an IBM mainframe running VM/CMS is the first personal computer. (You get your own personal CMS instance running on the massive, institutional big iron, see?)
Re:A new RISC-V version of uLisp by pjmlp on Friday March 20, 2020 @06:37PM (#22642402)
I guess not, it is just that the whole ecosystem is still on its infancy, and as usual C and C++ get the first class treatment.
Re:A new RISC-V version of uLisp by nineteen999 on Saturday March 21, 2020 @07:05AM (#22645755)
Just as well in this instance, since uLisp is a C program.
Re:A new RISC-V version of uLisp by pjmlp on Saturday March 21, 2020 @10:12AM (#22646598)
Yeah, as always in compiler design, bootstraping versus depending on widespread systems programming languages, is an engineering decision.

uLisp could also take advantage of cross compiling, the author just chose another path that allowed him the focus on other areas instead.

Re:A new RISC-V version of uLisp by nineteen999 on Saturday March 21, 2020 @06:01PM (#22650579)
What's preventing you from cross-compiling uLisp?
Re:A new RISC-V version of uLisp by pjmlp on Sunday March 22, 2020 @04:27AM (#22653544)
I guess not feeling like rewriting uLisp compiler/runtime in uLisp/Assembly, and not being the author,
Re:A new RISC-V version of uLisp by FullyFunctional on Saturday March 21, 2020 @12:07AM (#22644335)
Certainly not, and for interpreters it's a trivial port. JITs require more work. I imagine the biggest challenge for uLisp wasn't RISC-V per se, but the very limited amount of data memory on this particular chip (16 KiB IIRC).
Re:A new RISC-V version of uLisp by Ericson2314 on Friday March 20, 2020 @07:53PM (#22642958)
Nope
Re:A new RISC-V version of uLisp by fulafel on Saturday March 21, 2020 @10:34AM (#22646729)
I think Go is there also, the riscv-go repo proclaims itself obsolete with "This port has been upstreamed in Go 1.14.".

Also probably most interpreted languages work out of the box (Ruby, Python etc)

Re:A new RISC-V version of uLisp by pjmlp on Saturday March 21, 2020 @02:03PM (#22648406)
I see, thanks for the heads up.

Interpreter languages is easier, given the existence of C and C++ compilers.

Re:A new RISC-V version of uLisp by ____Sash---701_ on Friday March 20, 2020 @10:32PM (#22643760)
Best place/resource to learn Lisp?
Re:A new RISC-V version of uLisp by foundry27 on Friday March 20, 2020 @11:06PM (#22644026)
I’m sure a lot of people have their opinions about what the best introductory lisp text is. I won’t add to that list since a google search will give results from reviewers far more eloquent than I am.

What I would like to suggest is that once you basically “get” how the prefix syntax works, and how to process lists, Doug Hoyte’s Let Over Lambda (https://letoverlambda.com/textmode.cl/guest/toc) is a book that can really help you -learn- lisp, to fundamentally understand what makes lisp so powerful compared to other languages. Incredibly perspective-expanding content when I first read it, and largely references many of the “great” lisp texts that helped build the language and its community into what they are today.

Re:A new RISC-V version of uLisp by lispm on Saturday March 21, 2020 @04:22AM (#22645293)
uLisp itself has a lot of material to learn programming with it: http://www.ulisp.com/show?1AAO

For something like Common Lisp, which uLisp is similar to:

COMMON LISP: A Gentle Introduction to Symbolic Computation

https://www.cs.cmu.edu/~dst/LispBook/book.pdf

Practical Common Lisp

http://www.gigamonkeys.com/book/

Land of Lisp

http://landoflisp.com

ANSI Common Lisp by Paul Graham

http://www.paulgraham.com/acl.html

Re:A new RISC-V version of uLisp by capableweb on Saturday March 21, 2020 @06:26AM (#22645637)
Depends on the dialect. I learned lisp via clojure (in before all the "clojure is not a real lisp!" haters come in, please skip that) and first book I used was Clojure for the Brave and True which is a good introduction, fun to read, practical and is available for free to read online. Highly recommended! https://www.braveclojure.com/
Re:A new RISC-V version of uLisp by voldacar on Friday March 20, 2020 @11:29PM (#22644150)
SICP and PAIP are great if you work through them and do all the exercises instead of just skimming
Re:A new RISC-V version of uLisp by bear8642 on Saturday March 21, 2020 @11:58AM (#22647404)
For those not in the know

SICP = Structure and Interpretation of Computer Programs

PAIP = Paradigms of AI Programming

Re:A new RISC-V version of uLisp by nikofeyn on Saturday March 21, 2020 @12:57AM (#22644576)
regardless of experience, i recommend the little schemer, land of lisp, realm of racket, structure and interpretation of computer programs, and the courses how to code: simple data and how to code: complex data (don't be discouraged by the apparently simple titles as they cover the book how to design programs). if common lisp is really what you want, then i have lisp by winston and horn and common lisp by touretzky and find them quite nice, although i haven't gone through them, just peeking from time to time.
Re:A new RISC-V version of uLisp by CalChris on Friday March 20, 2020 @11:26PM (#22644135)
Little Lisper or Little Schemer.
Re:A new RISC-V version of uLisp by ccffpphh on Saturday March 21, 2020 @01:29AM (#22644732)
The Little Schemer with Racket
Re:A new RISC-V version of uLisp by bear8642 on Friday April 03, 2020 @11:20PM (#22775969)
Could you elaborate why Racket? Not an implementation I've used.
Re:A new RISC-V version of uLisp by newusertoday on Saturday March 21, 2020 @04:23AM (#22645300)
i like practical common lisp.
Re:A new RISC-V version of uLisp by ngcc_hk on Friday March 20, 2020 @09:50PM (#22643556)
uLisp is very much Arduino and not sure new platform purpose. Love to see it expand not just board but platform.