Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Jeaye
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
Jeaye
1y ago
> I’m a bit curious why you chose to implement this as a different language (even though it implements Clojure) instead of an alternative Clojure backend and/or C++ syntax extension. jank is Clojure. However, the Clojure name is tra
62.
▲
by
Jeaye
1y ago
Still deciding. Maybe jankster.
63.
▲
by
Jeaye
1y ago
I have blog posts with various benchmarks and optimizations, but ultimately all of my time is being spent actually developing the language right now. The fluidity of the implementation also means that the benchmarks from last year aren'
64.
▲
by
Jeaye
1y ago
Once all of the necessary features are implemented, the only thing in the way will be JVM interop. If you have any "pure Clojure" code (i.e. no interop), it should also be valid jank code.
65.
▲
by
Jeaye
1y ago
Hey folks. I'm the creator of jank. I didn't expect to be on HN today, but I appreciate the interest. In short, jank is Clojure, but it's on LLVM and has seamless C++ interop. You still get full nREPL capabilities, can redefi
66.
▲
The next phase of jank's C++ interop
(jank-lang.org)
15 points
by
Jeaye
1y ago
|
0 comments
67.
▲
Starting on seamless C++ interop in jank
(jank-lang.org)
9 points
by
Jeaye
1y ago
|
0 comments
68.
▲
by
Jeaye
1y ago
Niiice. What if we reworked 100 lines?
69.
▲
by
Jeaye
1y ago
Great work! The colored, structured output is clean! Folks may also be interested in nanobench, which is also a single header C++ lib. It focuses on benchmarking blocks of code, though.
70.
▲
by
Jeaye
2y ago
Fascinating. Thanks for breaking this down more. I think the article could've explained this point further.
71.
▲
by
Jeaye
2y ago
Are you saying that a statically linked binary cannot make an HTTP request to `google.com` because it would be unable to resolve the domain name? There are entire distros, like alpine, built on musl. I find this very hard to believe.
72.
▲
by
Jeaye
2y ago
I don't understand why they don't just statically link their binaries. First, they said this: > Even if you managed to statically link GLIBC—or used an alternative like musl—your application would be unable to load any dynamic
73.
▲
Can jank beat Clojure's error reporting?
(jank-lang.org)
11 points
by
Jeaye
2y ago
|
1 comments
74.
▲
by
Jeaye
2y ago
jank is the native Clojure dialect on LLVM, with seamless C++ interop. You get full interactive dev, REPL support, etc while having native binaries, ability to JIT compile C++ code along with your Clojure sources, ability to load arbitrary
75.
▲
by
Jeaye
2y ago
I expect that jank will be migrating from C++ to Rust, at some point. https://github.com/jank-lang/jank
76.
▲
by
Jeaye
2y ago
jank is also garbage collected, since Clojure practically demands it. Currently using Boehm, a conservative GC, but we'll need to switch to something more competitive when that becomes a priority. I have my eyes on MMTK + Immix.
77.
▲
by
Jeaye
2y ago
"Seamless rawdogging into C++" is the best thing I've read in a while. ^_^ Anything less than seamless rawdogging would be neutered C++.
78.
▲
by
Jeaye
2y ago
j like gentleman, ank like tank
79.
▲
by
Jeaye
2y ago
Yes, definitely. You'll be able to use it to REPL into your phone, for development, and it'll AOT compile alongside the rest of your app for release (Apple is a stickler about JIT compilation in released apps). This, we get largel
80.
▲
by
Jeaye
2y ago
Cool, dude! I also dig Rust. Carp is a very neat project, though it's not a Clojure. It's just Clojure-like. jank is Clojure.
81.
▲
by
Jeaye
2y ago
More detail to come. You're right, it's unprecedented.
82.
▲
by
Jeaye
2y ago
This is the first I've seen of LispE, so not a very informed opinion. Different lineages, for sure. Clojure really stands on its own in the lisp world and some die-hard lispers claim that it's not a lisp at all. However, for Cloju
83.
▲
by
Jeaye
2y ago
As the guy building jank, I agree with you about emacs, chords, etc. I'm a vimmer and I can tell you that Clojure is superb in Vim land (Conjure), VS Code land (Calva), Emacs land (??? some major mode), and IntelliJ land (Cursive).
84.
▲
by
Jeaye
2y ago
I hear you! There are millions upon millions of lines of C++ in production, though. C++ is still the de facto language in game dev and many other industries. I'd choose Rust over C++ for any greenfield project, but C++ isn't going
85.
▲
by
Jeaye
2y ago
The two biggest things are: 1. You get a native binary without sacrificing interactive programming. With a Graal native image, all of that goes away. With jank, you can still REPL in, change things, JIT compile code, etc. 2. You get Clojure
86.
▲
by
Jeaye
2y ago
You're absolutely right. To start with, I'm focusing on capturing and converting existing Clojure devs. However, there's a very large pool of C++ devs who could benefit from jank. As you said, jank not only needs to be ready
87.
▲
by
Jeaye
2y ago
jank can embed into any native program like lua would. But it the offers seamless interop back into C++, including the ability to instantiate new templates. So, anywhere lua is being embedded, jank could be used while providing a tighter in
88.
▲
From C++ to Clojure: Jank language promises best of both
(thenewstack.io)
259 points
by
Jeaye
2y ago
|
103 comments
89.
▲
by
Jeaye
2y ago
There are benchmark throughout my blog posts, but nothing which we run continuously yet, or which is easy for others to run. We'll get there!
90.
▲
by
Jeaye
2y ago
You could say that, but not all lisps are the same. I've tried a few different lisps and schemes, both, but the only one I've found enjoyable is Clojure. This is mainly due to its functional-first approach, immutable data structur
More ›