6 ms·
REBL
- xvilka 4y agoRebol? Red is an interesting implementation but doesn't support modern platforms.
- pavlov 4y agoThis project doesn’t seem to have anything to do with Rebol. AFAICT, the name REBL is a play on “REPL” and “rebel”.
- teodorlu 4y agoOr "read eval browse loop", in contrast to a "read eval print loop". REBL let's you browse complex data structures and move around in them. In a REPL, printing a megabyte of JSON can be ... hard to read.
- ARandomerDude 4y agoAlso, it's not to be confused with an amazing REPL library, rebel. https://github.com/bhauman/rebel-readline https://github.com/bhauman/rebel-readline
- blakers95 4y agoI'm trying to learn Clojure at the moment at the recommendation of Paul Graham and other technologists whom I greatly respect. But as I work through various coding challenges in an attempt to come to grips with the language, I have yet to encounter a single problem that is solved more elegantly in Clojure than the equivalent Pythonic solution. I am really trying to have an open mind, but I don't want to join a cult, either. It really feels at this point like Python has subsumed the best features of every dynamically typed language. Typically, people endorse Clojure for the following reasons: 1. It's functional! OK, well, all the higher order functions exist in Python, too, but in fact you wouldn't want to use them anyway because in Python you have list comprehensions, which, it turns out, usually leads to an even more readable solution. 2. REPL-driven development! Python also has a REPL. True, it isn't the best REPL imaginable, but as far as I can tell it has feature parity with Clojure's! Both are missing the ability to fix errors live in a breakout REPL like you would find in a true LISP REPL. 3. Macros! Code is data! You can easily create your own DSL! OK, maybe. But actually, in Clojure I've gathered the impression that macros are looked down upon, a feature of last resort, unlike in other LISPs. I also can't recall ever using Python and wishing I could replace its syntax with a DSL, since it is already so expressive and flexible. But admittedly that might be a limitation with my own imagination and experience. People tend to say all these things in favor of Clojure, but when you actually investigate them they seem quite flimsy. Meanwhile, for a language like Python the value product is clear and obvious. Where else are you going to do your machine learning, for example? I really am not trying to be an asshole to people who do enjoy and like Clojure, because I want to be one of you! I just need some reason to continue learning because clearly I haven't yet grokked the benefits. If anybody could concisely explain the advantages Clojure has over a language like Python (speed, maybe?) which do not fall apart under close scrutiny I would be grateful.
- cloogshicer 4y agoI had a very similar experience and ultimately gave up, at least until I see more of the evidence you're asking for. The concise way of writing Clojure/Lisp, which is often praised as one of its benefit (shorter code!) to me often just made it harder to understand. Also, coming from TypeScript, I was really missing the static typing - TDD was not a sufficient replacement for me, as I feel that again the main benefit of static typing is more easy understanding when reading other people's code. Since you mentioned PG, here's a very good counter point given by Jonathan Blow to what he says, and a discussion between the two (rare to see on HN): https://news.ycombinator.com/item?id=21237636 https://news.ycombinator.com/item?id=21237636
- cutler 4y agoAre you aware of clojure.spec?
- cloogshicer 4y agoYup, but I never worked with it. When I last dabbled in Clojure it was still in development, AFAIK.
- monsieurbanana 4y agoHow exactly do you use clojure's repl? You're not supposed to write things in the repl window. As for functional programming, if your rebuttal is that python has list comprehensions, you still need to do some more digging into it. I suggest you read Peter Norvig's pytudes, he writes python in a functional way and uses both higher order functions (which are there, but really meh) and list comprehensions. They are not the same thing. Clojure also has immutable structures which is imo just as important for functional programming. Not to say that python can't be used for it (pytudes really looks like art). For clojure maybe you can watch the parent of the dead series on YouTube (there's an ongoing reboot of the series). The repl workflow is so different from other languages that you really need to see people code in clojure live to understand it. https://www.parens-of-the-dead.com/ https://www.parens-of-the-dead.com/ https://github.com/norvig/pytudes https://github.com/norvig/pytudes
- deleted 4y ago[deleted]
- frou_dh 4y agoYou can tell from the screenshot that it uses JavaFX for the UI, because all the letters have the characteristic f'd up cyan/yellow fringing. A physical sub-pixel is red or green or blue. Mutually exclusive!
- vrglvrglvrgl 4y ago[dead]
- weatherlight 4y agoAnyone here use Datomic in production? Those that do, are you excited about REBL? (If so, why?) How do they like Datomic in 2023? Do they miss regular RDMS like MySql and Postgres? (Came to the comments hoping there would be more comments on Datomic, REBL, etc. But it just turned into a flame war between Python and Clojure of all things.
- Scarbutt 4y agoWhy would a company corner itself with a very niche, closed source database (and performance nightmare with its own query language you can't use anywhere), attached to one programming language when today the open source ecosystem of databases and cloud databases has so many good options and solutions?
- ARandomerDude 4y agoCan't Datomic be used with any JVM language? Sure, it's a Clojure-first database (note that Mongo is a JS-first DB), but a major selling point of Clojure is you can use it with Java/Kotlin/etc.
- jwr 4y agoNot that many, actually, if you want your database to be distributed (in any way). Even fewer if you want it to not lose your data. Plus the really good options (FoundationDB) are not "popular". As Barbie once said, "math is hard".
- ithrow 4y agoOnly reads can be distributed, and because of datomic's performance you will reach for them way sooner than with something like postgres.
- bmillare 4y agoDid anyone create a Clojurescript version of this like Stuart mentioned his excitement for in the talk? If not, I might put together something simple.
- eduction 4y agoIt looks like big chunks of REBL are being pulled into Clojure core: >Fogus has been mostly focusing on some new tooling derived from REBL and we are hopefully nearing a point of release on that and some additional supporting libs soon as well. From third paragraph here: https://clojure.org/news/2023/03/27/deref https://clojure.org/news/2023/03/27/deref This is important because the core Clojure license is true open source vs REBL which had a semi closed license, so it’s always been a little difficult of a choice for many people.
- bmillare 4y agoThat's great news. It would be easier to make "ports" of REBL like to a simple cljs app with the major components available. I feel REBL might have a bunch of nav wrappers that I would have to re-implement if I had to start from scratch