diff --git a/ROADMAP.md b/ROADMAP.md index db10dd4ee1..a22e2efbfe 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,11 +1,6 @@ ## [Version 0.4] -- [ ] [Coroutines](https://github.com/vlang/v/discussions/11582) -- [ ] [Thread safe maps](https://github.com/vlang/v/discussions/11729) -- [ ] Parallel parser -- [ ] Parallel checker -- [ ] Parallel C compilation -- [ ] `recover()` from panics +- [x] [Coroutines](https://github.com/vlang/v/discussions/11582) - [x] vfmt: add missing imports (like goimports) - [ ] Recursive structs via options: `struct Node { next ?Node }` - [x] First class Option type @@ -13,13 +8,20 @@ - [ ] Handle function pointers safely, remove `if function == 0 {` - [x] Bundle OpenSSL like GC - [x] Anonymous structs +- [ ] `any` type +- [x] Improve vweb: allow separation of logic via "controllers", lots of other fixes +- [x] New VPM site + +## [Version 0.5] +- [ ] [Thread safe maps](https://github.com/vlang/v/discussions/11729) +- [ ] Parallel parser +- [ ] Parallel checker +- [ ] Parallel C compilation +- [ ] `recover()` from panics - [ ] -usecache on by default - [ ] -skip-unused on by default -- [ ] `any` type -- [ ] `copy()` builtin function (e.g. for easier conversion from `[]Foo` to `[4]Foo`) -- [ ] A better documentation platform -- [ ] Improve vweb: allow separation of logic via "controllers", lots of other fixes - [ ] 64/32 bit int depending on arch (will remove array.len limitation on 64 bit systems) +- [ ] `copy()` builtin function (e.g. for easier conversion from `[]Foo` to `[4]Foo`) ## [Version 1.0] @@ -36,8 +38,9 @@ - [ ] Profiler improvements - [ ] Basic interactive shell with search, sort, filter, etc. - [ ] VPM - - [ ] New VPM site + - [x] New VPM site - [ ] Package versioning +- [ ] A better documentation platform ### Web diff --git a/vlib/coroutines/coroutines.v b/vlib/coroutines/coroutines.v index 22c1d9d95d..8104ff6494 100644 --- a/vlib/coroutines/coroutines.v +++ b/vlib/coroutines/coroutines.v @@ -20,7 +20,6 @@ pub fn sleep(duration time.Duration) { C.photon_sleep_ms(duration.milliseconds()) } -// init needs to be run -pub fn initialize() int { - return C.photon_init_default() +fn init() { + C.photon_init_default() }