1
0
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:
Alexander Medvednikov 2023-05-28 15:54:57 +02:00
parent 80d404c220
commit 786865d349
2 changed files with 16 additions and 14 deletions

View File

@ -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

View File

@ -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()
}