Live data from Hacker News

Glojure: Clojure interpreter hosted on Go, with extensible interop support

github.com

61–70 of 72 posts

Re: Glojure: Clojure interpreter hosted on Go, with extensible interop support

#61
post #57

Earlier quoted context omitted.

Please don’t take this rudely. But if you haven’t used a language or looked into in over a decade perhaps you shouldn’t comment on it? That being said you should really check out how streams, records, switch expressions, pattern matching and all of the recent additions in the last 5 years have made Java a magnitude less verbose than Go.

Few factors: - a ton of java is still legacy, ask works with java 7 vs java 17 and enjoy the laugh - I assumed java culture was still too rotten by its roots. I've used streams but whenever I have to import BiFunction I feel very sad. on the other side, the few go code I've seen was always very concise, or even when the code base wasn't very well designed it was, at worst, still below java

Only 2% [0] of runtimes are on Java 7. There is a large majority on 8 still and 45% are running Java 17. That being said Java 8 is still less verbose than Go. The number of lines needed to do basic programming like iterating collections or error handling is a magnitude larger in Go.

You’re basing your opinion on your feelings rather than objective facts of being in the ecosystem. Yes you may have to import BiFunction but that isn’t anymore verbose than having to write:

   func(a A, b B) C

[0] https://www.jetbrains.com/lp/devecosystem-2023/java/

Re: Glojure: Clojure interpreter hosted on Go, with extensible interop support

#62
post #13
post #11

Earlier quoted context omitted.

Don't host Go in Clojure.

You're not my dad.

You theoretically can but Clojure is not OS-level so you'd be working something like JVM->CLJ->Go and that would remove a lot of performance. Or Go->Clj->Go which is redundant. So yeah, I stand by my statement. And I could be your dad, how do you know 100%?

Re: Glojure: Clojure interpreter hosted on Go, with extensible interop support

#63

Earlier quoted context omitted.

A little off topic, but as someone who has occasionally used Clojure since Rich released a beta version (on many professional gigs, and to support examples in my Clojure AI book), I used to make such a mistake by writing wrappers in Clojure for Java libraries I used. A while back someone set me straight, and I no longer do that. So much better to call Java directly. Seeing the Glojure/Go interop examples reminded me…

What's the practical difference? Aren't you doing the same java interop in your app that you would be doing in your wrapper?

I used to try to build “lisp’y” wrappers. Misplaced esthetics.

Re: Glojure: Clojure interpreter hosted on Go, with extensible interop support

#64

Can Go easily call Glojure? Not clear from the README.

Fairly easily, yes! There’s a small package [0] just for that; it’s similar to the corresponding java package [1] for clojure.

0. https://pkg.go.dev/github.com/glojurelang/glojure/pkg/glj

1. http://clojure.github.io/clojure/javadoc/clojure/java/api/pa...

Re: Glojure: Clojure interpreter hosted on Go, with extensible interop support

#65
post #62
post #13

Earlier quoted context omitted.

You're not my dad.

You theoretically can but Clojure is not OS-level so you'd be working something like JVM->CLJ->Go and that would remove a lot of performance. Or Go->Clj->Go which is redundant. So yeah, I stand by my statement. And I could be your dad, how do you know 100%?

Go -> JVM bytecode with a Clojure-facing API and a Clojure-based compiler as a Clojure package wouldn’t be so bad. It’d just be another JVM frontend, hosted in Clojure. Clojure is also just a JVM frontend. I’m not quite understanding this “JVM->Clojure” bit of your equation; Clojure is a JVM frontend and stdlib API.

Re: Glojure: Clojure interpreter hosted on Go, with extensible interop support

#66
post #61

Earlier quoted context omitted.

Few factors: - a ton of java is still legacy, ask works with java 7 vs java 17 and enjoy the laugh - I assumed java culture was still too rotten by its roots. I've used streams but whenever I have to import BiFunction I feel very sad. on the other side, the few go code I've seen was always very concise, or even when the code base wasn't very well designed it was, at worst, still below java

Only 2% [0] of runtimes are on Java 7. There is a large majority on 8 still and 45% are running Java 17. That being said Java 8 is still less verbose than Go. The number of lines needed to do basic programming like iterating collections or error handling is a magnitude larger in Go. You’re basing your opinion on your feelings rather than objective facts of being in the ecosystem. Yes you may have to import BiFunction…

JetBrains earns money on selling Java-related products. They are a very biased source.

Re: Glojure: Clojure interpreter hosted on Go, with extensible interop support

#67
post #62

Earlier quoted context omitted.

You theoretically can but Clojure is not OS-level so you'd be working something like JVM->CLJ->Go and that would remove a lot of performance. Or Go->Clj->Go which is redundant. So yeah, I stand by my statement. And I could be your dad, how do you know 100%?

Go -> JVM bytecode with a Clojure-facing API and a Clojure-based compiler as a Clojure package wouldn’t be so bad. It’d just be another JVM frontend, hosted in Clojure. Clojure is also just a JVM frontend. I’m not quite understanding this “JVM->Clojure” bit of your equation; Clojure is a JVM frontend and stdlib API.

You can do CLR->Clojure, Clojure is a guest language as someone else said. It doesn't have to be JVM.

Re: Glojure: Clojure interpreter hosted on Go, with extensible interop support

#68

Can Go easily call Glojure? Not clear from the README.

Fairly easily, yes! There’s a small package [0] just for that; it’s similar to the corresponding java package [1] for clojure. 0. https://pkg.go.dev/github.com/glojurelang/glojure/pkg/glj 1. http://clojure.github.io/clojure/javadoc/clojure/java/api/pa...

Super cool :) thanks!

Re: Glojure: Clojure interpreter hosted on Go, with extensible interop support

#69
post #66
post #61

Earlier quoted context omitted.

Only 2% [0] of runtimes are on Java 7. There is a large majority on 8 still and 45% are running Java 17. That being said Java 8 is still less verbose than Go. The number of lines needed to do basic programming like iterating collections or error handling is a magnitude larger in Go. You’re basing your opinion on your feelings rather than objective facts of being in the ecosystem. Yes you may have to import BiFunction…

JetBrains earns money on selling Java-related products. They are a very biased source.

So you believe that everyone is running java 7 or what is it you even disagree with?

Also, Oracle employees have many statistics available, and they routinely say that Java 8 is no longer the most used version.

Re: Glojure: Clojure interpreter hosted on Go, with extensible interop support

#70
post #66
post #61

Earlier quoted context omitted.

Only 2% [0] of runtimes are on Java 7. There is a large majority on 8 still and 45% are running Java 17. That being said Java 8 is still less verbose than Go. The number of lines needed to do basic programming like iterating collections or error handling is a magnitude larger in Go. You’re basing your opinion on your feelings rather than objective facts of being in the ecosystem. Yes you may have to import BiFunction…

JetBrains earns money on selling Java-related products. They are a very biased source.

Yes they totally have a bias to manipulate user submitted results to show that more people are running new versions of Java than old ones.

Please.

Post reply on HN