clojurec icon indicating copy to clipboard operation
clojurec copied to clipboard

Unfriendly Crash

Open jcburley opened this issue 7 years ago • 5 comments

I tried running a program that expected at least one argument, without providing arguments, and got this:

$ ./cljc
GC Warning: Failed to expand heap by -4096 bytes
GC Warning: Failed to expand heap by -4096 bytes
GC Warning: Out of Memory! Heap size: 0 MiB. Returning NULL!
Segmentation fault

Seems a little unfriendly. Perhaps there's a reasonable way to avoid this and do something more elegant instead?

Here's the source (it'll look familiar):

(ns cljc.user)

(defn -main
  [arg & args]
  (println "Here are your args:")
  (flush)
  (apply println (cons arg args)))

jcburley avatar Apr 24 '18 20:04 jcburley

I'm sorry, I haven't touched this project in years and don't have any time to sink into it right now. If you're interested in maintaining it you have my blessings.

schani avatar Apr 24 '18 20:04 schani

Thanks, I am considering that! Is there much interest in it?

On April 24, 2018 4:30:23 PM EDT, Mark Probst [email protected] wrote:

I'm sorry, I haven't touched this project in years and don't have any time to sink into it right now. If you're interested in maintaining it you have my blessings.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/schani/clojurec/issues/40#issuecomment-384069482

-- http://burleyarch.com/

jcburley avatar Apr 24 '18 20:04 jcburley

Not that I know. It would be nice if it built and the basics worked, at least, but to make it useful a LOT of work would have to be done. This is barely an out-of-date proof of concept.

schani avatar Apr 24 '18 20:04 schani

...and yet it's already quite awesome!

Do you have a pointer to notes about the design, what's needed, pet peeved, etc.?

And/or, perhaps we could live-chat about it sometime?

On April 24, 2018 4:44:46 PM EDT, Mark Probst [email protected] wrote:

Not that I know. It would be nice if it built and the basics worked, at least, but to make it useful a LOT of work would have to be done. This is barely an out-of-date proof of concept.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/schani/clojurec/issues/40#issuecomment-384073852

-- Sent from my Android phone with K-9 Mail. Please excuse my brevity.

jcburley avatar Apr 24 '18 21:04 jcburley

I'm happy to chat about it! Shoot me an email at [email protected]

schani avatar Apr 24 '18 21:04 schani