A Sneak Peek at StableValue and SegmentMapper in Java

  Рет қаралды 7,969

Java

Java

Күн бұрын

Пікірлер: 30
@thomasdarimont
@thomasdarimont 3 ай бұрын
StableValue will be one of the true gems in the upcoming JDK versions!
@chu121su12
@chu121su12 2 ай бұрын
I made userland implementation based on the draft jep
@xozzy7809
@xozzy7809 3 ай бұрын
Beauty of simplicity
@gudenau
@gudenau 3 ай бұрын
Man these Java changes are super cool, I can't wait to use them when they come out!
@NikitaKovalenko-j7c
@NikitaKovalenko-j7c 3 ай бұрын
Excellent talk! Thank you
@jtirex
@jtirex 3 ай бұрын
Have been doing lots of ffm stuff for c interop - really looking forward to the segmentmapper, that looks great
@Sm0keySa1m0n
@Sm0keySa1m0n 3 ай бұрын
Will stable values provide performance benefits for MethodHandle similar to putting one in a static final field?
@delanym
@delanym 3 ай бұрын
I use a CAS "Thunk" class extensively but it will go when this StableValue arrives
@mekud
@mekud 3 ай бұрын
please use IDEA's presentation mode. please.
@krellin
@krellin 3 ай бұрын
nice, actual improvements to the language
@krellin
@krellin 3 ай бұрын
anyone knows what zsh config is that? i like it a lot
@TnTorciv
@TnTorciv Ай бұрын
33:35 "You can't do set accessible to and then update the field that will throw an exception just that it will do if you do the same thing in record. You can't get the offset for the field using unsafe because that will throw an exception but there are ways to do it but I will not tell you how" 🤣🤣🤣
@duckydude20
@duckydude20 3 ай бұрын
want to see what kotlin does with all these jvm features...
@rushslowly9450
@rushslowly9450 3 ай бұрын
or Scala, especially with value classes it will get interesting to see how Scala responds
@evgheniemelianov3594
@evgheniemelianov3594 3 ай бұрын
Why not using Optional instead of StableValue? It seems to have the same semantics?
@HonestAuntyElle
@HonestAuntyElle 3 ай бұрын
This is cool, but something that always confuses me, is a lot of stuff that would be key words in another language, are "just idk classes and methods" in java. It makes it difficult to know if something has special behaviour in the VM.
@kaqqao
@kaqqao 3 ай бұрын
Never understood why you'd want a keyword. You can't later add a method to a keyword, you can't parameterize it, inherit it, or even deprecate it cleanly. And you can do all those things to a class just fine. So why have a keyword (and an ever growing syntax), when a regular old class will suffice? As for knowing about the special treatment by the VM, these classes aren't something you'll ever accidentally use. You'll seek them out only if and when you need a specific optimization. In all other cases, you really don't have to even be aware of their special properties. A StableSupplier is just a supplier after all.
@freemanlau-yl8nq
@freemanlau-yl8nq 3 ай бұрын
Just call it ‘Once’ :)
@HonestAuntyElle
@HonestAuntyElle 3 ай бұрын
It feels a lot like memoization and lazy loading.
@31redorange08
@31redorange08 3 ай бұрын
OnceOrNever
@HonestAuntyElle
@HonestAuntyElle 3 ай бұрын
Love the concept, hate the API. I want to be able to use this as much as possible by default, but it feels unwieldy, which will only result in people doing hotspot performance improvements using it.
3 ай бұрын
Why do not add a language construct like kotlin's lazy?
@Ethesen
@Ethesen 3 ай бұрын
@28:10, @31:30
3 ай бұрын
@@Ethesen Thank you! I was not paying attention at the end of the video... :(
@cod3r1337
@cod3r1337 2 ай бұрын
Cool, did they just reinvent Kotlin's lazy delegate?
@markepshtein3735
@markepshtein3735 2 ай бұрын
kotlin lazy provides ability to control how many times lambda can be invoked. Also delegate feature makes it easy to use. StableValue came after kotlin lazy but looks uglier.
@krellin
@krellin 3 ай бұрын
real OOP = a lot of singletones what people actually do is Class Oriented Programming...
@forsakensandor
@forsakensandor 3 ай бұрын
Eh, maybe people's perception of what's maintainable has evolved? Full OOP was never a silver bullet but Java supports it just fine. With new additions, it also supports more reasonable paradigms..
@FlaviusAspra
@FlaviusAspra 2 ай бұрын
StableValue is anti-oop. But the real sad part: people don't see it.
Serialization - A New Hope
50:53
Java
Рет қаралды 16 М.
Teaching old Streams new tricks  By Viktor Klang
50:51
Devoxx
Рет қаралды 22 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Loom - Where Are We? #JVMLS
46:26
Java
Рет қаралды 9 М.
Vectors in Java: The 1 Situation You Might Want To Use Them
16:13
Coding with John
Рет қаралды 88 М.
Pattern Matching in Java - Past, Present, Future
54:07
Modern Java in Action
50:32
Java
Рет қаралды 42 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 912 М.
Java 23 - Better Language, Better APIs, Better Runtime
57:39
Evolution of software architecture with the co-creator of UML (Grady Booch)
1:30:43
The Pragmatic Engineer
Рет қаралды 116 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН