mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
coroutines: init() that runs automatically
This commit is contained in:
parent
80d404c220
commit
786865d349
25
ROADMAP.md
25
ROADMAP.md
@ -1,11 +1,6 @@
|
|||||||
## [Version 0.4]
|
## [Version 0.4]
|
||||||
|
|
||||||
- [ ] [Coroutines](https://github.com/vlang/v/discussions/11582)
|
- [x] [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] vfmt: add missing imports (like goimports)
|
- [x] vfmt: add missing imports (like goimports)
|
||||||
- [ ] Recursive structs via options: `struct Node { next ?Node }`
|
- [ ] Recursive structs via options: `struct Node { next ?Node }`
|
||||||
- [x] First class Option type
|
- [x] First class Option type
|
||||||
@ -13,13 +8,20 @@
|
|||||||
- [ ] Handle function pointers safely, remove `if function == 0 {`
|
- [ ] Handle function pointers safely, remove `if function == 0 {`
|
||||||
- [x] Bundle OpenSSL like GC
|
- [x] Bundle OpenSSL like GC
|
||||||
- [x] Anonymous structs
|
- [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
|
- [ ] -usecache on by default
|
||||||
- [ ] -skip-unused 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)
|
- [ ] 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]
|
## [Version 1.0]
|
||||||
|
|
||||||
@ -36,8 +38,9 @@
|
|||||||
- [ ] Profiler improvements
|
- [ ] Profiler improvements
|
||||||
- [ ] Basic interactive shell with search, sort, filter, etc.
|
- [ ] Basic interactive shell with search, sort, filter, etc.
|
||||||
- [ ] VPM
|
- [ ] VPM
|
||||||
- [ ] New VPM site
|
- [x] New VPM site
|
||||||
- [ ] Package versioning
|
- [ ] Package versioning
|
||||||
|
- [ ] A better documentation platform
|
||||||
|
|
||||||
### Web
|
### Web
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ pub fn sleep(duration time.Duration) {
|
|||||||
C.photon_sleep_ms(duration.milliseconds())
|
C.photon_sleep_ms(duration.milliseconds())
|
||||||
}
|
}
|
||||||
|
|
||||||
// init needs to be run
|
fn init() {
|
||||||
pub fn initialize() int {
|
C.photon_init_default()
|
||||||
return C.photon_init_default()
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user