Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
slifin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
301.
▲
by
slifin
7y ago
yep, borkdude has been playing with calling Rust from Clojure too via Java JNA, so if most of your application doesn't need rust like performance but one specific part of it does then you're not dead for options
302.
▲
by
slifin
7y ago
A lot of Clojure libraries will be described as Clojure(Script) libraries which means they run on both Java and JS usually with no interface changes here are some examples: https://github.com/tonsky/datascript https:&
303.
▲
by
slifin
7y ago
The normal one true way for most commercial companies right now is reframe, there's a nice ecosystem there and it's teachable
304.
▲
by
slifin
7y ago
If all you want is a rails thing but with a Clojure twist I'd keep an eye on https://youtu.be/jkx9F-RIFiY I agree there's a sometimes frustrating lack of branding and documentation for the one true way of doing th
305.
▲
by
slifin
7y ago
TDD? Testing in Clojure has such a nice feedback loop in Cursive, clj-kondo is a nice sanity checker, and most editors have rename functionality Long term I can see a more intelligent feedback system powered by codeq helping with static ana
306.
▲
by
slifin
7y ago
Yeah learning those first errors is a bit annoying learning what IFn is can be a bit cryptic but ClojureScript with shadow or figwheel gives really good errors
307.
▲
by
slifin
7y ago
Seems like you'd want to look into eavt databases for a universal schema, Datomic has a lot of resources explaining it's schema
308.
▲
by
slifin
7y ago
If you're interested in lisps and python's ecosystem you might enjoy lib python from Clojure: http://gigasquidsoftware.com/blog/2020/01/24/clojure-interop... https://run.nextjournal
309.
▲
by
slifin
7y ago
When you get heavy into types you start seeing the world through the lens of types and that's super dangerous for the same reasons that trying to view the entire world as SQL tables is not a maintainable solution, the problem isn'
310.
▲
by
slifin
7y ago
Looking at spec through the lens of a type system is weird because types solve two problems where spec solves one problem So I'm getting the most leverage out of types when they solve: - Static analysis - Specification Clojure'
311.
▲
by
slifin
7y ago
Well that depends what you define the host problem to be End users can certainly run Clojure programs natively without having the JVM installed on their machine
312.
▲
by
slifin
7y ago
Most editors should autocomplete those keys for you if you want somewhere that is a centralised location to find those names you could consider using spec https://clojure.org/about/spec Spec 2 should separate two conce
313.
▲
by
slifin
7y ago
Yeah CLJS REPLs are a pain point currently (if you use Cursive specifically) Emacs and Atom and some others are much easier, that said a lot of people start with the hot code reloading since that experience is really nice and works out the
314.
▲
by
slifin
7y ago
There is now an option to compile a binary, it uses GraalVM native-image technology We're growing a scripting ecosystem in Clojure now thanks to this, it's still relatively new As a newcomer, I've made several native binaries
315.
▲
by
slifin
7y ago
https://www.microsoft.com/en-us/research/publication/the-inf... The biggest predictor of bugs is "Organizational Structure", the main problems sound like they're not in the computer(s)
316.
▲
by
slifin
7y ago
https://github.com/fulcrologic/fulcro-rad
317.
▲
by
slifin
7y ago
Fulcro RAD is promising in this regard, going more declarative seems inevitable, there are challenges in designing declarative things though I think collectively we need more thought on how to design declarative systems that are tangible in
318.
▲
by
slifin
7y ago
Datalog is implemented in many Clojure(Script) databases if you'd like to try it out, Datahike is my favourite for dev/learning use but Crux, Datomic, Datascript and others exist
319.
▲
by
slifin
7y ago
ClojureScript is a superset of JavaScript, something as simple as writing a loop would very quickly illustrate there is a huge gap between the languages
320.
▲
by
slifin
7y ago
I think PHP suffers from the java migration, we now write code like this https://github.com/aran112000/Advent-of-Code-2019-PHP/blob/m... when functions in a namespace would have sufficed It seems like collect
321.
▲
by
slifin
7y ago
Most Clojure teams I speak to spec their input using Clojure spec, then they get custom recursive error reporting, validation, coercion and generators Clojure specifications can also be converted into other forms of specification like graph
322.
▲
by
slifin
7y ago
I've seen Haskellers "learn" Clojure, often nested ifs everywhere and an imperative mess, just expecting the language to make their poor thinking into a great program Clojure wants to be data oriented, I recommend watching a
323.
▲
by
slifin
7y ago
Yep and even then Clojure has Erlang and .net runtimes and interop built syntactically into the language, GraalVM has to reimplement those languages in it's tooling so they'll always be playing catch-up with the real implementatio
324.
▲
by
slifin
7y ago
In the Clojure community we just got access to all of python http://gigasquidsoftware.com/blog/2020/01/10/hugging-face-gp... I think learning Clojure will continue to pay off the reach you can get with i
325.
▲
by
slifin
7y ago
Clojure is a lisp that runs on top of Java, JavaScript and a couple of others and has access to all of those libraries via npm and maven Having more libraries than most languages doesn't nullify the use of macros, macros are usually di
326.
▲
by
slifin
7y ago
(let [intermediary-val (first-fn val) result (second-fn intermediary-val)]) Or as one of the parents said (-> val first-fn second-fn)
327.
▲
by
slifin
7y ago
Clojure is good for this because it's a parasitic language it sits on top of and interops with JavaScript, Java, .NET, Erlang and their ecosystems, npm, maven etc Learn the main language once and you get incredible reach, for every new
328.
▲
by
slifin
7y ago
Version number is too blunt an instrument Ideally I want enough introspection in my tooling to automatically pick up breaking changes by doing static analysis between versions and where breaking changes are impossible to detect I want human
329.
▲
by
slifin
7y ago
I'm definitely coming around to graph first systems like Fulcro and Datomic, with Datahike being a great Datomic introduction
330.
▲
by
slifin
7y ago
Be-careful when learning "FP" that you're not just learning your chosen language's idea of FP It can often be a large investment to learn these concepts only to find it's only scala or Haskell or w/e does FP &q
More ›