8 ms·
McCLIM: A GUI Toolkit for Common Lisp
- doall 9y agoRecently I'm seeing many Lisp contents in HN and always seeing tosh's name. Thanks for the posts tosh!
- souenzzo 9y agoWhy not react-like interface like reagent-project.github.io
- sanxiyn 9y agoBe sure to click "Get excited" link to take a look at screenshots.
- Athas 9y agoBlast from the past! I used to work on McCLIM and Climacs as an impressionable youth almost ten years ago. I think the battle for coming up with new ways of defining GUIs is lost (and the web is eating everything anyway), but CLIM was definitely an interesting idea. While it lost a bit in the ability of individual applications to customise their behaviour, it won a lot in the interoperability that was transparently provided by the presentation system. Using "presentations", any on-screen object could be associated with a Lisp object. An application would usually "present" various objects using "presentation types" (image, graph, filename, etc), and other applications could then "accept" input of a given presentation type. If some object of an acceptable type was somewhere on the screen, the user could just click it. Text-based input entry was usually also permitted, assuming the presentation type in question had a textual representation. I mostly worked on Drei, which was the input editor. It finds use in Climacs (which is probably not worth using if you have Emacs), and the McCLIM Listener, which is really cool. It shows the potential of adding bits of graphics support to a classical REPL, and being able to work interactively with opaque objects. Using CLIM is a bit like operating an artifact that somehow made its way from an alternative universe.
- jstimpfle 9y agoI've long been very unimpressed by common GUI development models. And also by resulting GUIs themselves - typically not very flexible. I've made a few attempts to find better approaches. But the fundamental problem is that in the end one always ends up with a separate state machine for GUI elements - so the GUI has to be synchronized with the state of the main thread. This is hard to get right, and unflexible in the end. Two days ago I came across the "Immediate Mode GUI" approach. It has some following for example in the games or realtime graphics sector. I think it's nice and very flexible, but could imagine it falls flat for complex interaction models where you just need considerable state, and it's better to use conventional widgets which have much of the logic encapsulated: https://www.youtube.com/watch?v=Z1qyvQsjK5Y https://github.com/ocornut/imgui
- 0x445442 9y agoMaybe the common approaches and models are what's wrong. Too me, if EMACS could render HTML the way a browser could it could cover almost every desktop user interface use case. There have been other systems developed which have similar approaches to simplifying desktop user interfaces; Enso comes immediately to mind. But I'm not aware of any systems that's completely replaced the notion of sandboxed applications running in their own windows and employing their own menu systems and widget layouts. With web applications things have become many times worse. I absolutely hate all the different UI paradigms I must deal with on a daily bases. There's empirical evidence to support the fact that I'm not in the minority either. I don't have the reference off hand but I was reading how a very large percentage of the Chinese population uses WeChat for many common, daily tasks other than chat. My claim: this is because consciously or not they don't like dealing with multiple, varying user interface paradigms.
- pmoriarty 9y ago"Too me, if EMACS could render HTML the way a browser could it could cover almost every desktop user interface use case." I mostly browse the web using emacs-w3m in a terminal. It works great with the exception of javascript, which it can't handle. For that, I reluctantly switch to a traditional browser. emacs-w3m is definitely not up to handling "every desktop user interface use case", but it's very nice for browsing the web in "plain text mode", as it were, viewing the occasional image (or more, if you're using gui emacs), and having full integration with emacs.
- lukego 9y agoI am really happy to see McCLIM moving forwards, great hacking! I recently started a project called Studio that is a suite of interactive development tools (profilers, etc.) The two frameworks that I shortlisted were McCLIM and The Glamorous Toolkit. Everything else seemed too low-level to me. (I ended up going with the latter because it was more actively developed.) Studio: https://hydra.snabb.co/job/lukego/studio-manual/studio-manual-html/latest/download-by-type/file/Manual#view-hot-traces https://hydra.snabb.co/job/lukego/studio-manual/studio-manua... The Glamorous Toolkit: http://gtoolkit.org/ http://gtoolkit.org/
- agumonkey 9y agoFunny, after the thread about J. Rees T, I dug the web and ended up there https://web.archive.org/web/20061013002258/http://fresh.homeunix.net:80/~luke/misc/haskell/NineNines.hs https://web.archive.org/web/20061013002258/http://fresh.home... small world ps: I just peeked at the regexp function, did someone told you or did you come up with it on your own ? it's so damn short
- lukego 9y agoSmall world indeed :) that's really old code, I don't remember much about it :)
- lukego 9y agoRegex code was probably based on the standard Erlang regex module that Robert Virding wrote. Simplified by skipping the regex syntax and writing the AST directly (like in scsh.)
- agumonkey 9y agoHa, great, another name to google :p ps: always skip the parsing.
- abecedarius 9y ago
- pavlov 9y agoThe attitude in this screenshot may explain why Lisp environments don't take off: https://common-lisp.net/project/mcclim/static/media/screenshots/k1vOauV.png https://common-lisp.net/project/mcclim/static/media/screensh...
- Bootvis 9y agoParent is downvoted but look at the screenshot. That is indeed a bad attitude and it's on the official project site. This does _not_ help.
- jackdaniel 9y agoYou are right, sorry about that. I've used screenshots provided by someone and didn't take a close look at each of them (I already had one report like that and taken action immedietely). If you find anything else, please let me know, I'm one of the maintainers. Picture removed.
- Bootvis 9y agoGreat, I really wish this project all the best. There is still some snark in the screenshots on the site but nothing I found too off putting.
- pavlov 9y agoThat was fast! Thanks for taking the concern seriously. It may seem like a small thing, but content that literally says "we expect you to already know Emacs and Symbolics, if you used something else, piss off" is a major turn-off.
- gkya 9y agoOh yeah Lisp is the only community with hostile individuals. Every sizeable community has such people and one must know to avoid them. It's hostile in itself to derive ideas about communities themselves from indiviudals' behaviour.
- jackdaniel 9y agoCool that we got into the Hacker News. If someone is interested in getting involved in development, I want to hint that we have some bounties set here: https://www.bountysource.com/teams/mcclim/bounties https://www.bountysource.com/teams/mcclim/bounties We are moving steadily forward, if you have any questions I'll try to answer - I'm one of the current maintainers.
- aidenn0 9y agoState of non-X11 frontends?
- jackdaniel 9y agoWinAPI frontend pending (alpha quality) - https://github.com/ailisp/mcclim-graphic-forms https://github.com/ailisp/mcclim-graphic-forms (bounty $500) Framebuffer backend working (although it uses X11, porting it to something else should be considerably easier) OSX backend beagle is broken (bounty $400) I suppose that's all we have atm (plus CLX backend of course, which is X11)