Fork me on GitHub
#off-topic
<
2020-10-23
>
hiredman02:10:47

Looking at some old branches, almost 11 years ago to the day I port clojures reader from java to this ridiculous huge letfn expression on clojure and munged the ant build to build clojure once with the java LispReader, then compile my lisp reader, and then rebuild clojure using my version

👍 6
bronsa10:10:20

that's pretty cool

hiredman02:10:34

https://github.com/hiredman/clojure/tree/readerIII which I then spent some time talking about in the interview for my first clojure job(first programing job), which I did on a burner prepaid phone sitting on a curb in an empty parking lot because the bus wouldn't have gotten me home after work in time for the call

parens 15
parrot 3
plexus06:10:19

This seems like a great project, but it hasn't reached its goal yet, and only 4 more days to go... https://www.kickstarter.com/projects/messagenotunderstood/message-not-understood?ref=thanks-copy

6
plexus06:10:59

> By interviewing the people who helped invent what today we call personal computing, this film will provide a perspective that is commonly absent from popular discussions about the role of computing in society. Many of these pioneers have long taken issue with the direction their inventions have taken. During these tumultuous times, it is crucial to get their take while we still can -- to grasp the futures they originally envisioned and to hear their view on the present.

plexus06:10:42

I'm not in any way affiliated with this project, but I did just back it and hope they make it. This kind of content/discourse is sorely needed IMO.

dominicm06:10:54

I was researching this myself a little lately. I watched an old bbc documentary on the web. The web does not match the goals. At all.

plexus06:10:27

and not just the web...

michele mendel07:10:47

I backed it, because i want to see this movie. Also shared on FB and LI.

valtteri16:10:57

Thanks for pointing this out!

valtteri12:10:05

Now they’ve reached the goal 🙂

parrot 9
andy.fingerhut20:10:11

It is my belief (perhaps wrong) that Java GCs will only throw OutOfMemoryException if the total memory occupied by live objects is over the configured max heap size. That is, if there are objects that cannot be reached from the root set, no matter how fast your application might be trying to allocate new objects, the GC will do a last ditch run to free up any dead objects it can before failing a request. Does that sound correct?

andy.fingerhut20:10:25

Also, I guess if I am using YourKit to analyze the heap after the OOM exception has already been thrown from trying to evaluate a form in a Clojure REPL, and the next REPL prompt has been shown after that occurred, it might be at that time that there is a bunch of objects that were live just before the OOM, but after the exception is thrown, they are no longer reachable?

Alex Miller (Clojure team)21:10:33

You can take heap snapshots in yourkit and diff them, and also backtrack where objects of a particular type are allocated

Alex Miller (Clojure team)21:10:59

Between the two, it’s usually not that hard to see memory leaks

andy.fingerhut21:10:19

Is there some term in the YourKit docs I can use to learn more about this "backtrack where objects of a particular type are allocated"?

andy.fingerhut20:10:44

e.g. because they were only live in the context of the code that was running, and after the exception, they are now dead.

andy.fingerhut20:10:53

And finally, if most of the memory is occupied with objects having classes clojure.lang.Cons and clojure.lang.LazySeq, does YourKit or some other tool make it possible to determine where in the code most of those allocations are occurring?

hiredman21:10:46

if the lazy seq has not been realized yet it will have a reference to a fn that is invoked when it is forced, fn's are usually pretty easy to map back to where they came from

andy.fingerhut21:10:18

hopefully it won't be hard to find an unrealized one, but I guess in situations like this it might be that 99+% of them will be.

code star 820:10:15

Anyone recommend any VIM or Spacemacs plugins for Live Code Share? Atom and Visual Studio Code are not good

code star 820:10:44

Atom is osx only. VSC needs latest osx version.