News for hackers. Stuff that matters.
Re:Lisp-Stick on a Python by jimbob45 on Tuesday November 15, 2022 @12:55AM (#33605806)
Doesn’t VS do that too though? Also if you’re talking about performance or memory profiling, why are you using a Lisp in the first place?
Re:Lisp-Stick on a Python by aidenn0 on Tuesday November 15, 2022 @01:11AM (#33605874)
I haven't used VS in a decade, but you needed to restart your program after changing the code.

Also, C++ linkage, while far faster than rust isn't the fastest thing, and compilation can be slow too (particularly with the popularity of header-only libraries).

Re:Lisp-Stick on a Python by electroly on Tuesday November 15, 2022 @01:14AM (#33605882)
Ten years ago, VS already had the "Edit and Continue" feature. But it's not very good compared to what you get in a Lisp environment. It's slow, there are restrictions on where/when it can be used, and it's possible for the edit operation to fail.
Re:Lisp-Stick on a Python by jahewson on Tuesday November 15, 2022 @01:17AM (#33605900)
No you don’t. Edit and continue in Visual Studio even works with C++ and it worked 20 years ago. It’s improved a lot recently.
Re:Lisp-Stick on a Python by qorrect on Tuesday November 15, 2022 @03:31PM (#33614603)
He's talking about production systems ... why everyone in this thread thought he was developing locally is beyond me because as you pointed out that has been around for a while.
Re:Lisp-Stick on a Python by NavinF on Tuesday November 15, 2022 @02:27AM (#33606297)
> you needed to restart your program after changing the code

Wow. No. This is a really basic debugging feature that's been around for over a decade. You can also drag-and-drop the instruction pointer to another line, watch and change variables in real time, etc. I swear, every LISP-related thread has someone touting ancient features as if they are somehow new or unique.

Re:Lisp-Stick on a Python by medo-bear on Tuesday November 15, 2022 @02:41AM (#33606369)
whats your etc.? in common lisp i can pretty much redefine the WHOLE compiled program at runtime. as far as interactivity and debugging is concerned, its not nearly as good as it is in common lisp
Re:Lisp-Stick on a Python by NavinF on Tuesday November 15, 2022 @06:09AM (#33607780)
Very cool, that's definitely not a common feature in every other debugger /s
Re:Lisp-Stick on a Python by lispm on Tuesday November 15, 2022 @06:55AM (#33608059)
Your C++ debugger let's you redefine an arbitrary C++ class in a running program and the existing program and data is changed. /s
Re:Lisp-Stick on a Python by imaltont on Tuesday November 15, 2022 @10:45AM (#33610581)
I don't think you know just how modular a Common Lisp environment is. Sure there is some hot reloading that sometimes works and you can change the value of variables, maybe even jump back and forth in your stack trace. Rarely does it do any of them as well as Common Lisp though, where the only thing that doesn't dynamically update when you change something is struct-instances and macros. Functions, variables/values, classes (including instances) can all change as you want it without restarting anything. When something goes wrong, like errors or exceptions, you can modify some code, restart some where on the stack, ignore it and continue execution, insert dummy value or insert a placeholder function.

Some form of interactivity with the debugger is common in my experience. The level of interactivity you get with Common Lisp is not.

Re:Lisp-Stick on a Python by qorrect on Tuesday November 15, 2022 @03:33PM (#33614628)
I really think you're missing the point, maybe this is why Lisp eludes so many.
Re:Lisp-Stick on a Python by medo-bear on Wednesday November 16, 2022 @05:27AM (#33621039)
it's not :)
[dead]
Re:Lisp-Stick on a Python by NavinF on Tuesday November 15, 2022 @07:07PM (#33617089)
Vouched your comment. I love how it got flagged for pointing out how that guy's been living in a cave for 17 years lol
Re:Lisp-Stick on a Python by medo-bear on Wednesday November 16, 2022 @06:11AM (#33621377)
i think its sad that people are so brave to troll on the internet yet in real life ... :(
Re:Lisp-Stick on a Python by NavinF on Wednesday November 16, 2022 @02:41PM (#33629351)
What are you referring to? My username is my real name.
Re:Lisp-Stick on a Python by aidenn0 on Wednesday November 23, 2022 @01:45AM (#33715984)
That's fair. In this case the cave is called "embedded development."

I found my old VS CDs and the latest version I own is .NET 2003, so I only missed that feature by a single release. I couldn't truly be a smug lisp weenie without some snide remark about how nice it is that blub developers finally got something not quite as powerful almost 40 years after Lisp could do it, so just consider me to have made such a statement.

Re:Lisp-Stick on a Python by medo-bear on Wednesday November 16, 2022 @06:52AM (#33621725)
i dont think you know the full limitations of hot reload in VS
Re:Lisp-Stick on a Python by medo-bear on Tuesday November 15, 2022 @03:03AM (#33606539)
> Also if you’re talking about performance or memory profiling, why are you using a Lisp in the first place?

common lisp can actually be really good performance-wise. its one of the things that made me switch from using python+c/cpp for my numerical work

Re:Lisp-Stick on a Python by silon42 on Tuesday November 15, 2022 @03:51AM (#33606829)
Yeah, those are nice features for development, but for actual running code those are anti features usually.
Re:Lisp-Stick on a Python by freilanzer on Tuesday November 15, 2022 @05:39AM (#33607572)
> Also if you’re talking about performance or memory profiling, why are you using a Lisp in the first place?

Why not? CL is very performant. You'd probably be surprised. https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

Re:Lisp-Stick on a Python by medo-bear on Tuesday November 15, 2022 @07:19AM (#33608228)
SBCL can get much faster results than what i can see there via use of SIMD procedures. i think in some tests it beat rust on spectral norm calculations
Re:Lisp-Stick on a Python by medo-bear on Tuesday November 15, 2022 @09:28AM (#33609532)
One can read the paper 'Closing the Performance Gap Between Lisp and C' written by one of the authors of the sb-simd package

https://zenodo.org/record/6335627