News for hackers. Stuff that matters.
Re:Lisp-Stick on a Python by jahewson on Tuesday November 15, 2022 @01:24AM (#33605938)
This a trick question because 10 line programs are trivial. Please show me a high performance hardware-accelerated 3D game engine written in lisp. Or a web browser.
Re:Lisp-Stick on a Python by vzaliva on Tuesday November 15, 2022 @01:52AM (#33606083)
How about IDE with base codebase of 1.5M loc and tons of 3rd part packages? (emacs)? Most modern programming is not about performance, it is about managing complexity.
Re:Lisp-Stick on a Python by japanuspus on Tuesday November 15, 2022 @01:54AM (#33606096)
Re:Lisp-Stick on a Python by merlincorey on Tuesday November 15, 2022 @02:13AM (#33606219)
Lisp has a rich history in games and graphics that you are not apparently aware of yet -- here's a few mostly Common Lisp Game Engines and resources to get you started (though GOAL was a Scheme variant):

1. https://en.wikipedia.org/wiki/Game_Oriented_Assembly_Lisp

2. https://elliottslaughter.com/2011/06/blackthorn-3d

  - Last updated in 2020 https://bitbucket.org/elliottslaughter/blackthorn-engine-3d/src/master/
3. https://github.com/gregcman/sucle

4. https://github.com/BradWBeer/clinch

5. https://github.com/Shirakumo/trial

  - This has games released on Steam built in it
6. https://www.cliki.net/game

7. https://github.com/lispgames/lispgames.github.io/wiki

Re:Lisp-Stick on a Python by medo-bear on Tuesday November 15, 2022 @02:58AM (#33606492)
Re:Lisp-Stick on a Python by abdulhaq on Tuesday November 15, 2022 @03:25AM (#33606685)
this uses a C++ rendering engine
Re:Lisp-Stick on a Python by medo-bear on Tuesday November 15, 2022 @03:37AM (#33606763)
so what ? the parent asked for a web browser. nyxt is rendering-engine agnostic by design

otoh how much rust is there in firefox? a:

https://4e6.github.io/firefox-lang-stats/

Re:Lisp-Stick on a Python by abdulhaq on Tuesday November 15, 2022 @07:32AM (#33608334)
the hard part about a web browser is the rendering engine, which is why it was raised as a challenge. Sticking a Lisp front end over an existing rendering engine doesn't answer the challenge.
Re:Lisp-Stick on a Python by medo-bear on Tuesday November 15, 2022 @07:39AM (#33608388)
then he didnt ask the right question. nyxt is a browser in every sense of the word. anyway there is no reason lisp cant be used for making a good rendering engine
Re:Lisp-Stick on a Python by jlarocco on Tuesday November 15, 2022 @12:06PM (#33611889)
Here's a browser written in pure Common Lisp: https://closure.common-lisp.dev/

These questions are so silly. Nobody's written a web-browser in Rust, Python, Ruby, Java, Clojure, Haskell, Erlang, Typescript, Javascript, etc. but that hasn't stopped anybody from using them.

Just admit you don't want to learn Lisp.

Re:Lisp-Stick on a Python by bitwize on Tuesday November 15, 2022 @06:18PM (#33616597)
Doesn't support HTML5, CSS3, JS. Non-starter.
Re:Lisp-Stick on a Python by abdulhaq on Wednesday November 16, 2022 @01:53AM (#33619790)
I learnt Lisp sometime around 1986 (from library books and later, on the Sinclair QL LOL), I do love it in some ways, but found distribution of final code to be an issue. I don't think it's suitable for all tasks.
Re:Lisp-Stick on a Python by medo-bear on Wednesday November 16, 2022 @05:21AM (#33620983)
> but found distribution of final code to be an issue

in 1986 ?

> don't think it's suitable for all tasks

to this day im yet to see an example of a software engineering problem that lisp is not suitable to solve. if you have such an example ready i would be genuinely curious. otherwise its just a thought from a very common and lazy misunderstanding of what lisp actually is

im talking about computational problems. things that are non-examples include such things as business sense/requirements, availability of programers, availability of ready made libraries/frameworks, or claims of apparent unsuitabilty in large teams

Re:Lisp-Stick on a Python by tmtvl on Tuesday November 15, 2022 @05:32AM (#33607520)
This a trick question because 10 line programs are trivial.

I mean, OP asked for a 10 line program showing something that can't be done easily in Rust and actually matters, so he seems to believe 10 line programs aren't trivial.

That said line counts are an awful metric because I could just cram an entire library definition in a single line as if it were minified JS.

Re:Lisp-Stick on a Python by mejutoco on Tuesday November 15, 2022 @05:53AM (#33607678)
Jak and Daxter and Crash Bandicoot (not sure how much of The last of us) are good examples in lisp.

There are a lot of video interviews with the creators. I found them extremely interesting.

https://en.wikipedia.org/wiki/Game_Oriented_Assembly_Lisp

https://www.reddit.com/r/lisp/comments/fayhw2/how_crash_band...

Re:Lisp-Stick on a Python by lispm on Tuesday November 15, 2022 @06:18AM (#33607824)
or a CAD program...

https://www.ptc.com/en/products/creo/elements-direct

that's C + several million lines of Lisp