Fork me on GitHub
#off-topic
<
2019-11-09
>
tianshu12:11:12

Hi, is there a good library for english NLP on JVM?

borkdude13:11:14

Standford NLP is one

borkdude13:11:27

be aware of the license, it's GPL

tianshu14:11:03

@borkdude ty! I'll take a look

theeternalpulse16:11:27

Not sure if it's a testament to the versatility of emacs or Jonas' memory

sogaiu16:11:40

humorous AND useful!

jjttjj21:11:25

Is there an easy way in linux to to measure the clojure startup time? $ time clj doesn't stop the clock until I exit the repl

jjttjj21:11:15

I'm curious because I got a new processor and my startup speeds feel fast

dominicm21:11:40

I always use time clojure -e '(System/exit 0)'

dominicm21:11:09

(1.58s for me on i7-7500U CPU @ 2.70GHz)

sogaiu21:11:17

here's what happens here:

$ time clojure -e '(System/exit 0)'

real	0m3.550s
user	0m11.397s
sys	0m0.387s
i7-8550U CPU @ 1.80GHz

Alex Miller (Clojure team)21:11:43

first run will calculate and cache the classpath so make sure to run it more than once

๐Ÿ‘ 4
dominicm21:11:24

clojure -e '(System/exit 0)' && time clojure -e '(System/exit 0)' I guess

dominicm21:11:43

@UG1C3AD5Z curious to see your second run ๐Ÿ˜„

sogaiu21:11:39

$ clojure -e '(System/exit 0)' && time clojure -e '(System/exit 0)'

real	0m1.217s
user	0m2.844s
sys	0m0.114s

dominicm21:11:20

1.2 vs 1.5, /shrug ๐Ÿ˜„

dominicm21:11:42

The problem with the -U processors is that they're low-power.

sogaiu21:11:07

it's a trade-off between being able to carry it around with other things and still remain healthy and not ๐Ÿ™‚ https://www.notebookcheck.net/LG-Gram-15Z980-i7-8550U-Full-HD-Laptop-Review.321228.0.html

dominicm21:11:37

You get more muscly with something bigger, so healthier in another way? ๐Ÿ˜„

dominicm21:11:03

I have legit considered getting myself something with a desktop cpu in. I'd happily carry spare batteries.

dominicm21:11:13

I mostly use it as a desktop anyway, portability is rarely useful to me.

sogaiu21:11:28

well, that's if you are healthy to begin with -- when you already have back problems, it doesn't necessarily work out that way ๐Ÿ™‚ i used to carry a notebook around that was > 4kg

mauricio.szabo03:11:32

Can I play too?

$ clojure -e '(System/exit 0)' && time clojure -e '(System/exit 0)'

real    0m0,908s
user    0m1,821s
sys     0m0,082s

mauricio.szabo03:11:34

This was on OpenJ9 VM. On Hotspot the numbers are about 2x slower

sogaiu03:11:46

ohhh, nice

sogaiu21:11:30

is this about to become a big thread? ๐Ÿ™‚

dominicm21:11:40

haha, I hope so ๐Ÿ˜„

dominicm21:11:45

I want to know how bad mine is.

borkdude21:11:38

$ clj
Clojure 1.10.1
user=> (require '[clojure.java.shell :as sh])
nil
user=> (time (sh/sh "clj" "-e" "(+ 1 2 3)"))
"Elapsed time: 770.059226 msecs"
{:exit 0, :out "6\n", :err ""}

sogaiu21:11:18

$ clj
Clojure 1.10.1
user=> (require '[clojure.java.shell :as sh])
nil
user=> (time (sh/sh "clj" "-e" "(+ 1 2 3)"))
"Elapsed time: 933.252331 msecs"
{:exit 0, :out "6\n", :err ""}

jjttjj21:11:08

Cool thanks!

sogaiu21:11:58

@borkdude cpu info? ๐Ÿ™‚

borkdude21:11:35

MBP 2019 2.3 GHz Intel Core i9

sogaiu21:11:49

so that looks like: I9-9880H

borkdude22:11:03

I'd have to look that up

borkdude22:11:07

but seems likely

sogaiu22:11:37

it was on the page ^ but who trusts the net? ๐Ÿ˜‰

borkdude22:11:22

ah, I was trying to find it in my laptop OS ๐Ÿ˜‰

jjttjj21:11:15

user=> (time (sh/sh "clj" "-e" "(+ 1 2 3)"))
"Elapsed time: 635.406765 msecs"
{:exit 0, :out "6\n", :err ""}
๐Ÿ˜Ž

jjttjj21:11:11

with AMD Ryzen 9 3900X

sogaiu21:11:38

nice :thumbsup: