Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mailbox-empty-p for sbcl, add simple.lisp example #3

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

CGenie
Copy link

@CGenie CGenie commented Oct 18, 2022

This is useful for newbies like me.

@CGenie
Copy link
Author

CGenie commented Oct 20, 2022

I also fixed this to work on lispworks on linux, as it seems the objc.lisp code was macos-only.

Copy link
Owner

@dbmcclain dbmcclain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand where the stress is in stresstest.lisp?

If it is intended to come from your possible Bignum, then have a look at the crypto that uses 256 bit integers and larger. It works fine because Lisp works fine.

Copy link
Owner

@dbmcclain dbmcclain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SBCL fix is fine.

THe simple.lisp should not be using DEFPARAMETER on the Actors. That will eventually get you into trouble. DEFPARAMETER is a "Special Binding" in Lisp. We need "Lexical Bindings", like those of all Lisp Functions.

@CGenie
Copy link
Author

CGenie commented Oct 21, 2022

I don't understand where the stress is in stresstest.lisp?

If it is intended to come from your possible Bignum, then have a look at the crypto that uses 256 bit integers and larger. It works fine because Lisp works fine.

Maybe it's incorrect naming. I just wanted to saturate my CPUs with something to compute.

@CGenie
Copy link
Author

CGenie commented Oct 21, 2022

The SBCL fix is fine.

THe simple.lisp should not be using DEFPARAMETER on the Actors. That will eventually get you into trouble. DEFPARAMETER is a "Special Binding" in Lisp. We need "Lexical Bindings", like those of all Lisp Functions.

Thanks for this tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants