Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.prolog > #13983
| From | Mild Shock <janburse@fastmail.fm> |
|---|---|
| Newsgroups | comp.lang.prolog |
| Subject | Re: Not being a Haskell programmer is trendy! |
| Date | 2024-02-21 01:30 +0100 |
| Message-ID | <ur3g68$d0vr$3@solani.org> (permalink) |
| References | <upjgq3$19qjv$1@solani.org> <ur3g0l$d0vr$1@solani.org> <ur3g2r$d0vr$2@solani.org> |
Also the Kotlin language and runtime might suffer from not enough "DIRECT STYLE" and even ignoring Doug Leas java.util.concurrent.Flow, devlivering some bloated redundant nonsense I speculate from glossing over it. Flow has an interesting history. And all the new JDK 21 integrate HTTP server and HTTP client make use of the interfaces bundled by the class Flow. But I am tapping into it via ordinary InputStream and OutputStream. Reactive Streams started as an initiative in late 2013 between engineers at Netflix, Pivotal and Lightbend. Reactive Streams were proposed to become part of Java 9 by Doug Lea, leader of JSR 166 as a new Flow class that would include the interfaces currently provided by Reactive Streams. https://en.wikipedia.org/wiki/Reactive_Streams Mild Shock schrieb: > Its also proof of concept that no stack copying > is necessary. Well its not 100% true the Prolog > interpreter does a little bit unwind and rewind > > during the '$YIELD'/1 instruction. But we do > nowhere copy some native stack, this is unlike > Martin Odersky's speculation, he might implement > > someting with stack copying. Except that a virtual > threads might using a copying when they resize > their stack, I don't see any need for copying. > > Also sometimes a callback can be piggy packed on > an existing coroutine if it doesn't yield itself, > I am already using this in Dogelog Player as an > > optimization. The idea to use semaphores in my > implementation can be credited to this paper > from 1980 where semaphores are the main switchpoint: > > Extension of Pascal and its Application to > Quasi-Parallel Programming and Simulation, Software - > Practice and Experience, 10 (1980), 773-789 > J. Kriz and H. Sandmayr > https://www.academia.edu/47139332 > > But my experience with JDK 21 virtual threads > is still poor, I am only beginning to explore them > as a way to have a large number of coroutines. > > Mild Shock schrieb: >> My revecent Async/Await surrogates for JDK 21 >> provide coroutines with suspend/resume semantics. >> They are not continuations. They aim is to provide >> async/await and not only setTimeout(). >> >> As a result you don't need to write libraries >> with a continuation parameters. This is very unlike >> nonsense such as the JavaScript express web framework. >> >> stackfulness >> In contrast to a stackless coroutine a stackful >> coroutine can be suspended from within a nested >> stackframe. Execution resumes at exactly the same >> point in the code where it was suspended before. >> >> stackless >> With a stackless coroutine, only the top-level routine >> may be suspended. Any routine called by that top-level >> routine may not itself suspend. This prohibits >> providing suspend/resume operations in routines within >> a general-purpose library. >> https://www.boost.org/doc/libs/1_57_0/libs/coroutine/doc/html/coroutine/intro.html#coroutine.intro.stackfulness >> >> >> Mild Shock schrieb: >>> Just watched 2 videos from Scala and the >>> year 2023 and nearly chocked on my yoghurt, >>> >>> especially when I saw the first presenter got a >>> headeache from early returns. LoL >>> >>> Async/Await for the Monadic Programmer >>> https://www.youtube.com/watch?v=OH5cxLNTTPo >>> >>> DIRECT STYLE SCALA Scalar Conference 2023 >>> https://www.youtube.com/watch?v=0Fm0y4K4YO8 >>> >>> Whats the bottom line: All because they discovered they >>> could do async/await as well? >> >
Back to comp.lang.prolog | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-02-02 20:46 +0100
Re: Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-02-02 21:00 +0100
Re: Not being a Haskell programmer is trendy! Mild Shock <bursejan@gmail.com> - 2024-02-02 12:50 -0800
Re: Not being a Haskell programmer is trendy! Mild Shock <bursejan@gmail.com> - 2024-02-07 03:25 -0800
Re: Not being a Haskell programmer is trendy! Mild Shock <bursejan@gmail.com> - 2024-02-11 14:34 -0800
Re: Not being a Haskell programmer is trendy! Mild Shock <bursejan@gmail.com> - 2024-02-11 14:39 -0800
Re: Not being a Haskell programmer is trendy! Mild Shock <bursejan@gmail.com> - 2024-02-14 06:45 -0800
Re: Not being a Haskell programmer is trendy! Mild Shock <bursejan@gmail.com> - 2024-02-14 06:53 -0800
Re: Not being a Haskell programmer is trendy! Mild Shock <bursejan@gmail.com> - 2024-02-14 13:29 -0800
Re: Not being a Haskell programmer is trendy! Mild Shock <bursejan@gmail.com> - 2024-02-14 13:33 -0800
Re: Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-02-21 01:27 +0100
Re: Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-02-21 01:28 +0100
Re: Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-02-21 01:30 +0100
Re: Not being a Haskell programmer is trendy! Mild Shock <bursejan@gmail.com> - 2024-02-21 03:43 -0800
Re: Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-03-01 17:45 +0100
Re: Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-03-01 17:47 +0100
Re: Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-03-01 17:57 +0100
Re: Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-03-01 18:06 +0100
Re: Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-03-01 18:08 +0100
Re: Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-03-01 19:45 +0100
Re: Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-03-01 21:33 +0100
Re: Not being a Haskell programmer is trendy! Mild Shock <janburse@fastmail.fm> - 2024-03-06 01:56 +0100
csiph-web