Re:Smalltalk is not a perfect language. What are its shortco...
by EdwardDiego on Friday November 01, 2019 @05:55PM
(#21424109)
Let's say that the size we're measuring is the distributable unit. I give you this, and assuming you've got common dependencies, you can run it without building or compiling.
[ Parent
| on HN ]
Re:Smalltalk is not a perfect language. What are its shortco...
by jolmg on Friday November 01, 2019 @06:57PM
(#21424582)
I only have a few minutes worth of knowledge of Smalltalk, but...
$ cat hello.st
#!/usr/bin/gst
Transcript show: 'Hello World!'.
Transcript cr.
$ ./hello.st
Hello World!
$ du -b hello.st
64 hello.st
That's 64 bytes in a distributable unit. So, what's 50MB?Even combining the whole of the smalltalk package I used, it's only 18M:
$ du -bhc $(pacman -Qlq smalltalk | grep -v '/$') | tail -1
18M total
Re:Smalltalk is not a perfect language. What are its shortco...
by epsilon_greedy on Friday November 01, 2019 @07:01PM
(#21424604)
Gnu Smalltalk isn't used often (as far as I'm aware). If you use something more common like Pharo or Squeak, the base image includes things like the IDE, window environment, etc. and accounts for the 50MB size.
Edit
I should mention that shipping smalltalk applications generally means shipping the entire image. While there is work to make distributing just the code easier (EG. iceberg mentioned in the article) I don't believe this is yet a common practice. Even in that scenario however, you'll need an image to run that code and it will still be 50+MB.
Re:Smalltalk is not a perfect language. What are its shortco...
by igouy on Friday November 01, 2019 @07:39PM
(#21424834)
> … shipping smalltalk applications generally means …
Is that what Edward Diego meant?
Is Hello world what "smalltalk applications" generally means?
Re:Smalltalk is not a perfect language. What are its shortco...
by epsilon_greedy on Friday November 01, 2019 @09:53PM
(#21425387)
That is what I took "distributable unit" to mean, yes. Perhaps it's not fair to say that this is true for "hello world" as you've shown in your Visual Works example and jolmg has shown with GST.