108 points · by rscho · 4y ago · 51 comments
Pharo is not a filesystem/.txt coding environment.
It's a VM runtime with every single element is indexed by the class/traits hierarchy. And then the same code draws the GUI.
OP didn't just write a code snippet.
They wrote a method, tested it in an already launched dynamic runtime.
And deployed it into a desktop app in front of you.
Forget Jenkins, Docker-Compose or Make, their deploy tool was copy/paste.
It's truly a pity that desktop based applications are not popular in the current age, and phones are locked down.
Smalltalk remains truly unparalleled at producing local apps. 30 years after its heyday, SwiftUI is still a shadow of what Smalltalk can do.
More on topic: there are many ways in which Pharo can find things that is not possible (or applicable) in other languages.
For example, there are 4 mouse clicks you can make in your image:
- left click
- right click: it shows a context menu
And then there are two clicks that I would need my laptop for to (re)figure out. One shows a “halo” around a window. The “halo” gives all kinds of options. The other one shows a context menu that allows you to figure out what objects are running with regards to the pixel you clicked on!
Because of the last click, it’s easy-ish to extend your IDE.
The last two clicks are some combination of CMD + Option + CTRL + click
https://m.youtube.com/watch?v=uUOlzr4XdcY
Asking for a friend…
> Our backend uses Pharo Smalltalk, Seaside and GemStone/S
How is your experience with GemStone/S?
I don’t know much about GemStone specifics yet, I am about to though.
My skillset before this was mostly in React and Node.
Before using Gemstone/J with a Java application, I worked in Smalltalk for a number of years building an application backed by a different object database product, so I was already familiar with the advantages and pitfalls of using an OO DB. If you are familiar with using an OO DB, Gemstone is an easy transition.
[1] I am at the office about every 6 weeks for 2 to 3 days.
On the other hand, optimized C++ is notoriously hard to debug, and debug C++ is slow (especially when using "zero overhead" abstractions that are only zero-overhead in release builds). There's cool work at reversible debugging, binary-patching, etc. (low-overhead tracepoints, Linux kernel Kprobes which failed to hook some functions I think were actually called, CONFIG_DYNAMIC_FTRACE, most recently https://justine.lol/ftrace/, though both CONFIG_DYNAMIC_FTRACE and ftrace depend on injecting nops into code which can later be replaced by tracing code).
JavaScript excels at neither performance nor dynamism, though I think it's still a lot more dynamic than C++ (userscripts can tamper with page contents and scripting) and faster than Python (through herculean effort of the V8 developers funded by Google ad revenue to make web apps and advertising faster). And C++/assembly, by its nature of allowing complete control over the machine, is difficult to sandbox beyond running code in an isolated process or VM (or compiling to WASM then to x86?), as opposed to JS/WASM being (theoretically) memory-safe and sandboxable by taking away APIs interfacing to the outside world.
Web apps are too dominant, and the fact is much of backend engineering is mildly unsuitable for a dynamic language runtime due to raw performance.
I think that's the issue. No golden use case like Ruby on Rails.
If Apple supported Smalltalk for native iOS apps things would be fine. But pigs would fly first.
such is life, it's gonna popup again in php10 or typescript5 for sure
I’d be curious to know more about this!
For example, I had never before considered how this feature could help people navigate a foreign language so literally.
You can get away with a lot of saying "just trust me" when everything is exposed for immediate exploration of whether invariants are in fact preserved.
For example can I take "#(1 2 3) min." and go directly to the definition of min? It seems I can only look at _all_ implementations, not just the implementation for that object
The debugger code itself could give clues on how to do it.