News for hackers. Stuff that matters.
Re:Alan Kay: Smalltalk is not about objects, it’s about mess... by mark_l_watson on Saturday December 21, 2019 @03:09PM (#21853107)
Whoa, hold your horses!

Pharo is a modern open source Smalltalk that was derived from Squeak. Nice UI, vibrant ecosystem and community. https://pharo.org/

Re:Alan Kay: Smalltalk is not about objects, it’s about mess... by jchw on Saturday December 21, 2019 @03:20PM (#21853165)
Instantly was enticed by this, but quickly ran into the depths. I'm on NixOS unstable and I realize this is not ever going to be a well-supported place to be in terms of running random software, but thankfully there are in fact Pharo attributes in nixpkgs. Sadly though, I can't figure out how to use it.

It looks like I want to start with Pharo Launcher, so I've installed the Pharo VM and Pharo Launcher, but when I try to start Pharo Launcher a window pops up and it just exists. All I can see in the terminal is a message about pthread_setschedparam failing, which does not seem fatal.

I wonder whether my problem is with not understanding what I'm doing, or with NixOS, or something in between...

Re:Alan Kay: Smalltalk is not about objects, it’s about mess... by e12e on Sunday December 22, 2019 @08:31AM (#21857031)
> All I can see in the terminal is a message about pthread_setschedparam failing,

Just spotted this on Cuis smalltalk github page:

"If you get this error message (you won't get it if you run Cuis as root or sudo):

pthread_setschedparam failed: Operation not permitted ...

Then you need to do this (just one time):

sudo cp Cuis-Smalltalk-Dev/squeak.conf /etc/security/limits.d/squeak.conf

Log out and log back in, or reboot the machine."

Might be something similar for pharo?

https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/blob/ma...

Re:Alan Kay: Smalltalk is not about objects, it’s about mess... by e12e on Saturday December 21, 2019 @03:38PM (#21853246)
Did you try the zip from here? http://pharo.org/download

I'd guess you could get some hints by running ldd on the vm (I'm assuming it's not strictly a static binary).

You need the vm and an image - the launcher I imagine is a vm and just enough image to display a menu and get a "proper" image downloaded.

Re:Alan Kay: Smalltalk is not about objects, it’s about mess... by jchw on Saturday December 21, 2019 @04:16PM (#21853410)
I have the VM seemingly working through the NixOS package, and if I run the Pharo image downloaded from there, it seems to show a window with nothing on it but a menu item labelled "Pharo" that does nothing.

Perhaps I'm missing something but I doubt the Linux VM download on that page will help me. Ordinary binaries don't tend to run on NixOS without at least some ELF patching due to the Nix store architecture.

Re:Alan Kay: Smalltalk is not about objects, it’s about mess... by e12e on Saturday December 21, 2019 @05:22PM (#21853670)
Sounds like a ui/x toolkit library mismatch. I've seen similar issues with Java gui apps under Linux (long ago though).
Re:Alan Kay: Smalltalk is not about objects, it’s about mess... by mark_l_watson on Saturday December 21, 2019 @03:40PM (#21853252)
I can’t help you. I sometimes have NixOS running in a VirtualBox container, but don’t have one available right now. Do you have a plain Linux running anywhere, or as a container inside NixOS? Except for occasional font problems, Pharo works fine on Linux.