Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
geokon
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
54 ms
·
691.
▲
by
geokon
5y ago
I made a GUI using cljfx - that's a react style wrapper around javafx It was wonderful and runs an all desktops (and I guess theoretically mobile through Gluon). None of that Electron lag. There is a bit of a learning curve - esp if li
692.
▲
by
geokon
5y ago
Use Hunter for dependency management https://github.com/cpp-pm/hunter There is a bit of a learning curve, but it's the only dependency manager that does things right (all from within CMake)
693.
▲
by
geokon
5y ago
Not a bad idea! guix has openjdk, gcc, clang, cmake etc. Seems a lot more mature than last I checked. How easily does this play with a dev environment? Am I gunna have to do weird things to make tools find their toolchains? I tried to grok
694.
▲
by
geokon
5y ago
I just checked and `openjdk-15-jdk` `openjdk-16-jdk` are only on sid/unstable - which `openjdk-17-jdk` is only on testing. So yeah, the only alternative is mixing version which is playing with fire. These seems like pretty basic distro
695.
▲
by
geokon
5y ago
I haven't used Debian in very long time. Have they converged on some alternative to the PPA? Like if I want the latest GCC or OpenJDK.. surely you don't download some AppImage, right?
696.
▲
by
geokon
5y ago
I've admittedly not played with spec, but can't you solve documenting interfaces by defining `defrecord`s ? You rarely really care about the actual types involved. You just want to know which fields you either need to provide or w
697.
▲
by
geokon
5y ago
Okay I hadn't thought of that :) I guess even after all this time using these functions I'm still not entirely comfortable with the lazyness. I think a more explicit method in Clojure is to use `eduction` (if I'm not misunder
698.
▲
by
geokon
5y ago
"map, filter and split are eager" why is this an issue? It's generally quite rare to leverage laziness (like with infinite lists and generators or something). And it causes errors to emerge away from the function callsite. I
699.
▲
by
geokon
5y ago
looks awesome. thank you
700.
▲
by
geokon
5y ago
A bit tangential.. but can anyone recommend some good resources on writing a (emacs-like) text editor? I'm curious how they look architecturally
701.
▲
by
geokon
5y ago
Why have Linus and company not embraced some version of AGPL based on GPLv2? I really don't understand why such a license doesn't exists. It sounds like it'd be right up their alley. Companies use and modify his code, buildin
702.
▲
by
geokon
5y ago
Looking forward :) I just know getting things in core is difficult b/c understandably you wanna keep most things out in utils libs. But if you wanna have launchable scripts/code-snippets then having to ask people to append -Sdeps
703.
▲
by
geokon
5y ago
that's pretty cool! I guess gists are a bit fancier than a normal pastebin. They don't really advertise it and they don't even display the sha hashs. I didn't realize that :) and thank you for the demo. With the`:paths [
704.
▲
by
geokon
5y ago
The tools pay off for sure but even once you know how to use deps.edn and company, I'd argue you still really need quick one-file programs. It's not just about education (though that's important as well). I think the top two
705.
▲
by
geokon
5y ago
It's nice to have complex build/test setups with deep directory structures, I'm really happy this stuff exists and is being enhanced, but the flexibility kinda adds a barrier to getting started. It's also important to be
706.
▲
by
geokon
5y ago
Oh, of course. Lisp is maybe a more natural analogue. I guess Clojure takes things a step further. It goes from "everything is a list" to something slightly broader with Vectors/Maps/Sets/etc. - all through language
707.
▲
by
geokon
5y ago
The high level description sounds a bit like Clojure...? Both sound very tied to the datastructures and built in algorithms provided. As long as your problem maps well to the built in tool it's very terse (in a very good way!). I find
708.
▲
by
geokon
5y ago
How do you handle multitasking? Do you shut down what you're doing and then switch to something else? I feel this creates a lot of friction. It could be good in a way b/c you don't get easily distracted :) I remember in earli
709.
▲
by
geokon
5y ago
right, it's not like you're completely stuck with no way to figure out what's causing your problems. In pretty much every language you can get a crash stack and pepper print/logging statements. And sure, the Clojure stac
710.
▲
by
geokon
5y ago
Right, if you're doing web-tech stuff and have servers then this seems the right way to go. I'm usually more interested in local REPL development. I will have like GUIs and whatnot blow up on me. But I appreciate the info and the
711.
▲
by
geokon
5y ago
I asked something similar on the Cider Github and it sounds like it's not possible to get ELisp level debugging: https://github.com/clojure-emacs/cider/discussions/2999 If anything Clojure needs this mor
712.
▲
by
geokon
5y ago
Do you have an good references for implementing an ECS? I've only found very high level descriptions but they all are a bit handwavey and avoid the implementation details. I know Entt is a highly praised library, but I'd be intere
713.
▲
by
geokon
5y ago
Could `scope-capture` be used to capture state before a crash? What would be nice is a GDB-like state along with stacktraces when you get a crash. Clojure stack traces are notoriously long and spooky. You learn to read the tea leaves, but e
714.
▲
by
geokon
5y ago
That allows you to step through code. but it doesn't break when you get a crash (like gdb). At least when I just tested: #dbg(defn get-first [input] (nth input 0)) (get-first [4 2 3]) ;; 4 (get-first 5) ;; gives me a s
715.
▲
by
geokon
5y ago
Thanks for the link. I'll take a read when I have some time :) If there is a small core, it's not necessarily obvious. Yes, a lot of things are pushed out to libraries, but even the basic language features, liked (defn) (cond) (ns
716.
▲
by
geokon
5y ago
I need to play with the debugger again.. Does it give you the state along with a crash stack? I remember that unfortunately the debugger couldn't be turned on globally. You need to instrument particular functions. And this turned out t
717.
▲
by
geokon
5y ago
Maybe I should have left off the last part b/c it's a bit provocative :) Yeah, the language itself is built on macros - but as a language user you don't really care as it's an implementation detail. I guess my point is t
718.
▲
by
geokon
5y ago
Maybe I'm wrong, but I don't think EDN really has anything to do with homoiconicity. You're just parsing in data (strings) into other data (internal Clojure data structure). It's nice that the syntax matches how you'
719.
▲
by
geokon
5y ago
Oh thanks. Yeah. I thought maybe I was noobing it up :) Always nice to learn something new
720.
▲
by
geokon
5y ago
I don't really follow.. How is it a non problem in functional code? For instance you have some recursive idempotent function that blows at some point. Wouldn't you wanna see the state at which things broke? Just because things are
More ›