Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
huahaiy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
huahaiy
2y ago
I thought distributed system is exactly one of the things that got Clojure going to begin with. Remember Storm? As to databases, there are a fountain of databases emerging from the Clojure ecosystem: Datomic, Datascript, Datalevin, XTDB, an
32.
▲
by
huahaiy
2y ago
You can still do lein new and away you go, today. That still works. Many people still use lein for new projects, especially for larger ones. For small on-off thing, clojure command line is more convenient. So it is a good thing to have more
33.
▲
by
huahaiy
2y ago
REPL code is copy/pasted straight into tests. So really, REPL is for helping write tests. BTW, when Clojurians talk about REPL, it's not about that separate window where you type and run the code as in other language such as pytho
34.
▲
by
huahaiy
2y ago
Scales very well. Immutable data pairs great with REPL. Because data are immutable, you don't need to care about where that data come from and where it will go. Just focus on what you need to do with that data at the point you work. Ev
35.
▲
by
huahaiy
2y ago
Not really. Database is where immutability may not be a good fit, at least not all the time. In many use cases, database is where application state resides, hence a mutable database is a better fit. There are Datomic flavored database in th
36.
▲
by
huahaiy
2y ago
For someone who needs static typing, Clojure give them defprotocol, deftype and defrecord. Interestingly, most of the low level libraries in the Clojure ecosystem are programmed that way. If you open up the code of many popular Clojure libr
37.
▲
by
huahaiy
2y ago
No. I have looked at your code. You did not use the mentioned https://github.com/clj-easy/graal-build-time If you don't do what everybody is doing to solve a problem, then of course it is not a "solved proble
38.
▲
by
huahaiy
2y ago
Graalvm native image for Clojure is a solved problem. Just add this library to the project and add a flag to native image command line. https://github.com/clj-easy/graal-build-time This initializes Clojure classes at b
39.
▲
by
huahaiy
2y ago
Author here, happy to talk about it. Thank refset for posting.
40.
▲
by
huahaiy
2y ago
Clojure/clojurescript
41.
▲
by
huahaiy
2y ago
Correct. I don't know about DataScript's intention, but it is intentional for Datalevin, as we have tests for sequential intra-transaction semantics.
42.
▲
by
huahaiy
3y ago
Embedded DB
43.
▲
by
huahaiy
4y ago
Not really. Our experience is that Clojure is a very good language for newcomers to programming as a profession. In fact, we almost exclusively hire new computer science graduates. None of them had heard of Clojure before joining, and the v
44.
▲
by
huahaiy
4y ago
Maybe you should try some "small names" in AI chatbots.
45.
▲
by
huahaiy
4y ago
We have backouts two days in a roll now at south bay. Both lasted over 6 hours, right at the honest hours of the day. My bedroom temperature reached 90 degree last night. This is maddening.
46.
▲
by
huahaiy
4y ago
That's indeed a valid concern. Keeps my finger crossed.
47.
▲
by
huahaiy
4y ago
Rust and Clojure address completely different domains of problems. Rust is competing with C++ for writing low level systems, whereas Clojure is designed for writing business applications. Low level systems tend to have stable and well under
48.
▲
by
huahaiy
4y ago
Most of these things do have Clojure libraries. For example: - unit tests with ephemeral dbs: we use com.opentable.components/otj-pg-embedded for postgres. - db migrations: there are Migratus and many others, we also just use flyway in
49.
▲
by
huahaiy
4y ago
That's fine. But I was merely pointing out a false premise. The article was saying too much focus was spent on "big web frameworks" in Clojure, but the reality is that most people in the community do not care about these at a
50.
▲
by
huahaiy
4y ago
Clojure itself is not much more than a decade years old. Even that, there are quite many libraries that have stayed all these year, e.g. the standard things I mentioned, such as Ring, Reagent, etc. As I have already mentioned, "activel
51.
▲
by
huahaiy
4y ago
Of course. I have plenty of cases when working django, flask, and tensorflow code stop working after bumping the dependency versions. In fact, it is rare that I do not need to change code after I upgrade python dependencies. Most likely I h
52.
▲
by
huahaiy
4y ago
So what you mean by "stable" is in the names only, but not in substance. What I mean by stable, is that my code remains working after I upgrade the dependencies, which is definitely NOT the case for python frameworks, but it is mo
53.
▲
by
huahaiy
4y ago
I don't think the HN mentions of Clojure is representative of what the Clojure community thinks. If you are talking about the frontpage of HN, it is even less representative. The Clojurians slack, Clojure Reddits and Clojurverse are mo
54.
▲
by
huahaiy
4y ago
Clojure is intended as a hosted language and embracing the host is the philosophy, so interop with the host is never a bandage. Again, I am curious where you get all these impressions that are contrary to most people in the community take f
55.
▲
by
huahaiy
4y ago
Care to mention a few examples of missing libraries that you spent 50% of time writing on the job? I can hardly recall a case where I could not find a Clojure libraries for. The only exception would be wrappers for proprietary APIs, such as
56.
▲
by
huahaiy
4y ago
"countless of Clojure dependencies having died"? What exact does it mean by "died"? It does not work any more? Very unlikely. In the Clojure world, it is the norm that a 5 years old library works as well as a one-week ol
57.
▲
by
huahaiy
4y ago
Retries, JSON coercions and so on do have Clojure libraries for them, so I am not sure why you want to solve these problems yourself, let alone a dozen times. Really not sure what your exact point is.
58.
▲
by
huahaiy
4y ago
"very stable" and python in the same sentence? I am not sure about that.
59.
▲
by
huahaiy
4y ago
Your observation is simply not true. To the contrary, the consensus of the community seems to be that there's no need for a rails-like framework for Clojure. Most of Clojurians are satisfied with what we have in the Web front, and are
60.
▲
by
huahaiy
4y ago
"open-source efforts are repeatedly being spent on trying to build the next web framework/library/toolkit (Rails) for Clojure and not much else", really? That's contrary to what most of us know. There are some effor
More ›