Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is really interesting. Thanks for writing this comment and sharing.

Async is good for lots of IO work and managing independent tasks with low coupling.

I am interested in task scheduling and asynchronous code I am interested in programming language development and parallelism and simultaneity without parallelism and cooperative and preemptive scheduling.

As an experiment inspired by Protothreads (a C library for implementing cooperative multitasking with a switch statement) I recently implemented async/await in Java as a giant switch statement and a while loop.

Providing that each coroutine only runs once, the amount of memory used shall not grow. The goal is to be stackless.

I began writing a programming language that looks similar to JavaScript but targets an imaginary interpreter that is multithreaded. I hope to think of how to represent async await so that the high level language can target the interpreter. I need to think of the code I need to codegen to implement async/await.

I played around with an C++ coroutines but someone told me that the approach I used is not C++20.

Code is at https://GitHub.com/samsquire/multiversion-concurrency-contro...

The reconciliation loop idea sounds interesting.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: