Fork me on GitHub
#clojure-europe
<
2023-03-06
>
grav06:03:49

Morning #CBJ5CGE0G šŸ™‚

mdiin07:03:50

Good morning ā˜•

genRaiy07:03:48

(inc ā˜•)

šŸ˜„ 8
otfrom08:03:47

(loop :coffee: :morning: (recur :coffee:)) tho I'm only doing it for the side effects

16
šŸ˜„ 8
borkdude09:03:55

(while true ā˜• )

mccraigmccraig13:03:15

; => CaffeineOverdoseError

šŸ˜„ 2
thomas09:03:11

@mail802 what would happen if you did ++ā˜•?

šŸ’„ 4
simongray09:03:15

good morning

slipset10:03:30

Morning or something

simongray10:03:11

Liverpool or Rome

thomas10:03:39

ROTTERDAM!!!!

simongray10:03:00

ā€œItā€™s great that you got the site up, but why isnā€™t my name the first thing mentioned on the landing page? After all, I was the one who received the funding.ā€ - senior researcher who didnā€™t really do any of the work laughcry I basically did all of it completely by myself and I didnā€™t even put my own name thereā€¦ but yeah, name recognition and prestige is the name of the game in academia. It is kind of sad.

šŸ’Æ 6
Mario Trost10:03:38

That sounds awful

mdiin10:03:39

That is what turned me off academia. People scrambling to get recognized for work they might not have done themselves, but they are at the top of the food chain.

mdiin10:03:47

Are you researching as well @U4P4NREBY?

simongray10:03:44

well, I did the work, but I am not technically a researcher. And to be honest, it doesnā€™t matter much to me since I donā€™t need to game citations to have a career like the tenure track people.

simongray10:03:28

I think the proof is in the pudding. I open source everything I do here and that paper trail leads directly to me in 100% of the cases.

šŸ’Æ 4
ā¤ļø 2
mdiin10:03:37

Thatā€™s at least a positive way of seeing it. But yes, the citation game is what makes some parts of academia seem toxic (in my opinion, and I can only see it from the outside as Iā€™m no researcher myself).

simongray10:03:47

The way I see it, having a plethora of open source contributions is the software developerā€™s equivalent to having lots of citations. And I consider myself a software developer, not a researcher even if my output is often research-adjacent.

mdiin10:03:30

True, the difference is, as you put it before, with software contributions the paper trail leads to the developer who made it.

mdiin10:03:53

To me that means open source contributions are worth more.

reefersleep12:03:32

Dammnnnnn I didnā€™t know it was that bad in Denmark šŸ˜® Iā€™ve heard about it being an issue in the states before.

simongray13:03:00

I think itā€™s common almost everywhere in academia. It has some serious perverse incentives. Career advancement is basically a pyramid scheme linked to the citation scores and the funding that is attached to your name. Employment for researchers is extremely precarious until they finally become a professor, which means those lower in the hierarchy accept long work hours with poor financial compensation + having to attribute a great deal of their work to those higher up in the hierarchy, since they bring the name recognition and/or funding. A as a consequence of this, you will find that a lot of PhDs and postdocs have this extremely meek and subservient attitude since this is furthers their career advancement. I am not a part of that system (thankfully) so I also donā€™t have to work interest hours, but I do get to observe it first-hand almost every day.

Ben Sless15:03:14

That's what academia runs on Can you imagine what would happen if it lost its prestige? No more research grants, donations or conventions. Instant demotion from researcher to unemployed bum

Ben Sless15:03:01

If some esoteric vc investor is reading this, lend me your power and I'll break the prestige monopoly šŸ˜

šŸŽ© 2
javahippie10:03:36

Immediately added it to our company Slack space, thanks! šŸ˜…

Mario Trost11:03:56

All credit goes to @U4P4NREBY in the message right above (very topical crediting šŸ™‚)

šŸ˜ 2
simongray10:03:19

not the prettiest of emojis

āœ… 4
jasonbell10:03:48

Kinda screams of ā€œI need medical attentionā€

āœ… 6
šŸ˜† 8
javahippie10:03:41

Morning!Ā°

mccraigmccraig10:03:10

Ā”mĆ„Ć„ning!

simongray10:03:55

This weekend I managed to find a couple of hours to work on my blog thingyā€¦ felt good to do some hobby programming again

šŸ‘ 10
reefersleep12:03:03

Good morning!

mccraigmccraig13:03:16

anyone know how a java 19 virtual thread differs from a java 1.0 green thread ?

borkdude13:03:51

what is a java 1.0 green thread?

borkdude13:03:37

are these the regular Thread ?

mccraigmccraig13:03:08

the very first release of java had non-native "green" threads ... scheduling was entirely in-JVM

borkdude13:03:39

I see, I didn't know that

mccraigmccraig13:03:49

then one of the early subsequent major releases introduced native threads

borkdude13:03:26

and it took them 25 years to re-introduce virtual threads? ;)

javahippie13:03:37

>> Isnt this just "green threads"? >> > Java developers may recall that in the Java 1.0 days, some JVMs implemented threads using user-mode, or "green", threads. Virtual threads bear a superficial similarity to green threads in that they are both managed by the JVM rather than the OS, but this is where the similarity ends. The green threads of the 90s still had large, monolithic stacks. They were very much a product of their time, when systems were single-core and OSes didnt have thread support at all. Virtual threads have more in common with the user-mode threads found in other languages, such as goroutines in Go or processes in Erlang -- but have the advantage of being semantically identical to the threads we already have.

mccraigmccraig13:03:39

yeah, googling found me that @U0N9SJHCH... but it's not very satisfying - e.g. what do jdk19 vthreads do differently ?

mccraigmccraig14:03:19

and what's a monolithic stack as opposed to any other stack ?

javahippie14:03:43

You are right, itā€˜s not really a deep explanation

Ben Sless14:03:46

AFAIK green threads were multiplexed on one real thread, while virtual threads do MxN multiplexing

šŸ‘ 2
dharrigan14:03:59

Would the JEP be of help? https://openjdk.org/jeps/425

šŸ‘ 2
dharrigan14:03:02

Lots of details there

mccraigmccraig14:03:26

searching for "green" in that doc @U11EL3P9U gives roughly what @UK0810AQ2 said

dharrigan14:03:00

There is always the mailing list

dharrigan14:03:07

that may have more answers

mccraigmccraig14:03:34

i asked chatGPT as well, and along with some vague stuff which might be hinting at MxN multiplexing, it also gave me:

Stack Size: Java 1.0 green threads had a fixed stack size, which limited their scalability. Java 19 virtual threads use a flexible stack allocation mechanism that allows the JVM to dynamically adjust the stack size based on the application's needs, improving scalability.

mccraigmccraig14:03:37

ah, from the JEP:

The stacks of virtual threads are stored in Java's garbage-collected heap as stack chunk objects. The stacks grow and shrink as the application runs, both to be memory-efficient and to accommodate stacks of arbitrary depth (up to the JVM's configured platform thread stack size). This efficiency is what enables a large number of virtual threads, and thus the continued viability of the thread-per-request style in server applications.

otfrom14:03:47

old grean threads Mx1 new virtual threads MxN, but that from the JEP is the best I think

šŸ‘ 4
Ben Sless15:03:07

Would have really liked first class continuations with that But alas

šŸ˜æ 4
simongray17:03:40

Old ones green, new ones super green

šŸ˜‚ 4
otfrom18:03:43

grean? lern2spel Buce

šŸ˜‚ 2
grav19:03:48

> monolithic Monoliths* are bad mkay ... *except for when they're repos ... or backends written in Clojure.

jackrusher05:03:17

@UK0810AQ2 jdk.internal.vm.Continuation is there (though you need to toggle it on when you start the JVM), and they say they'll ultimately support continuations via some future stable public API, but for now... šŸ˜ž

Ben Sless06:03:54

Yeah, I already played with it but it feels half baked, and it can't be forked

šŸ’Æ 2
jackrusher07:03:45

Their comments about how lightweight threads should meet most use cases for continuations makes me worry that they'll never support them properly, but I do hope they manage something in the end. Combined with other recent improvements and the upcoming TCO support, I'd be excited about all the implementation improvements we could make for languages like Clojure, Kawa, &c.

āž• 2
Ben Sless13:03:15

This would really depend on Oracle paying Ron Pressler to finish the implementation or move him to the next project