Re:Soup – Alan Kay on Objects
by andrepd on Monday October 29, 2018 @07:33PM
(#18332648)
Ocaml has both! You have a (very powerful) module system, serving purposes of encapsulation and namespacing, and other more powerful abstractions, and you also have dynamic/message-passing style OOP available to you.
[ Parent
| on HN ]
Re:Soup – Alan Kay on Objects
by jjtheblunt on Monday October 29, 2018 @09:41PM
(#18333379)
...and no access to multicore processing that's been ubiquitous for over a decade?
I was quite amazed that this wasn't the case. OCaml clearly is working on it - http://ocamllabs.io/doc/multicore.html
Plus there are monadic ways of handling concurrency with lwt.
You can use multicores, just make processes.
Re:Soup – Alan Kay on Objects
by codesmythe on Monday October 29, 2018 @11:50PM
(#18333901)
A question: can OCaml’s object system be used to implement a runtime similar to that of Objective-C (things like obj_msgsend)? Or does OCaml’s type system impose restrictions that prevent this level of dynamic operation?
Re:Soup – Alan Kay on Objects
by atombender on Tuesday October 30, 2018 @12:48AM
(#18334070)
Does anyone actually use the OO stuff? Last I checked, the consensus was that it was a failure and that it should be avoided in modern OCaml.