2021-01-22 10:33:06 +01:00
## V 0.2.3
2020-12-30 02:20:03 +01:00
*Not yet released*
2021-01-22 10:33:06 +01:00
## V 0.2.2
*22 Jan 2021*
2020-12-31 17:31:17 +01:00
- `vweb` now uses struct embedding: `app.vweb.text('hello') => app.text('hello')` .
2020-12-30 02:20:03 +01:00
- Consts can now be declared outside of `const()` blocks: `const x = 0` .
2021-01-10 11:24:46 +01:00
- Overloading of `>` , `<` , `!=` , `==` , `<=` and `>=` operators.
2021-01-05 19:34:42 +01:00
- New struct updating syntax: `User{ ...u, name: 'new' }` to replace `{ u | name: 'new' }` .
- `byte.str()` has been fixed and works like with all other numbers. `byte.ascii_str()` has been added.
2021-01-08 04:57:02 +01:00
- Smart cast in for loops: `for mut x is string {}` .
- `[noinit]` struct attribute to disallow direct struct initialization with `Foo{}` .
2021-01-09 22:48:23 +01:00
- Array decompose: `[1, 2, 3]...` is now `...[1, 2, 3]`
2021-01-10 11:26:31 +01:00
- Treating `enum` as `int` and operations on `enum` except `==` and `!=` are removed for strict type checking.
2021-01-08 17:41:52 +01:00
- Support `[manualfree] fn f1(){}` and `[manualfree] module m1` , for functions doing their own memory management.
2021-01-12 04:38:12 +01:00
- Allow usage of `<` and `>` operators for struct in `.sort` method for arrays, i.e. `arr.sort(a < b)` .
2021-01-13 03:31:14 +01:00
- Auto generate assignment operators like `+=` , `-=` , `*=` , `/=` and `%=` if the operators are defined.
2021-01-14 17:00:08 +01:00
- Colorize and improve failing tests output.
- Fix `go` with a generic function: `go test<string>(c, 'abcd')` .
2021-01-14 17:19:04 +01:00
- Add comptime `x := $embed_file('v.png') println(x.len) println(ptr_str(x.data()))` , for embedding files into binaries.
2021-01-18 06:04:59 +01:00
- Advanced vdoc search on mobile layout.
2021-01-22 10:33:06 +01:00
- string's `left()` /`right` were removed in favor of slicing syntax: `str[..pos]` .
- gg: native graphics mode on macOS/iOS (using Cocoa Drawing API).
2020-12-30 02:20:03 +01:00
## V 0.2.1
2021-01-05 19:34:42 +01:00
*30 Dec 2020*
2020-12-30 02:20:03 +01:00
- Hashmap bootstrapping fixes.
- Array decomposition to varargs: `fn sum(i ...int) int` => `a := [2,3,4] println(sum(a...))`
- HTML module docs generated by vdoc now have global search.
2020-12-22 20:48:26 +01:00
## V 0.2
*22 Dec 2020*
- Compile-time memory management via `-autofree` . [Video demonstration ](https://www.youtube.com/watch?v=gmB8ea8uLsM ).
It will be enabled by default in 0.3
- Channels and locks.
- Thread safe typed arrays via keyword `shared` .
- Struct embedding.
- IO streams.
- A powerful websocket module that conforms to RFC 6455 and passes the Autobahn test suite (498 client tests and 249 server tests).
2020-12-22 21:39:18 +01:00
- The `net` module is now non blocking and is more feature complete providing similar API to Go.
2020-12-22 20:48:26 +01:00
- V's graphics module now uses Metal/DirectX/OpenGL instead of just OpenGL.
- V can now run in the browser via WASM and execute V code by translating it to JavaScript:
https://v-wasm.now.sh
- V binaries for Linux/Windows/macOS are now built and deployed automatically via GitHub Actions.
- Smart casting for sumtypes and interfaces, including complex expressions: `if x.expr is int { println(x.expr + 1) }` .
- Clean and easy way to sort arrays: `users.sort(a.name > b.name)` .
- A huge amount of `vfmt` fixes and improvements. It has now reached a point where it can be safely used on any V source file.
2020-12-22 21:01:54 +01:00
- A new CI job that runs `v fmt -verify` on the entire code base, a new command that makes sure the file/directory
2020-12-22 20:48:26 +01:00
has been vfmt'ed. This ensures that all code submitted to the V project is formatted.
- A new tool `v vet` for analyzing the project and finding potential bugs and errors.
2020-12-22 21:01:54 +01:00
- A new `term.ui` module for building dynamic terminal UIs with an example editor written in it.
2020-12-22 20:48:26 +01:00
- Early iOS and Android support.
- All missing ORM features from the old backend were brought back.
- Magic `it` variable has been replaced with smart casts (the change is completely handled by vfmt).
- Cross-compiling to Windows and Linux brought back.
2020-12-22 21:01:54 +01:00
- C2V can now generate wrappers. Example: https://github.com/medvednikov/libsodium. (C2V will be released by 0.3)
2020-12-22 20:48:26 +01:00
- C++ compiler support: code, generated by the C backend can now by compiled by C++ compilers.
- Short generics syntax: `foo(5)` instead of `foo<int>(5)` .
- Cached modules via `-usecache` . Faster compilation due to not needing to rebuild the entire vlib for
each program. Will be enabled by default in 0.2.1.
- New improved sum types implementation.
- Lots of errors that happen often during the development cycle were turned into warnings to increase
development speed. They are still errors in production builds.
- Labeled `break` and `continue` .
- Lots of documentation. The official language documentation grew 3 times in size.
- `modules.vlang.io` is now generated automatically on every commit.
2020-12-22 10:44:42 +01:00
- Builtin compile-time JSON serializer now supports `time.Time` .
2020-12-22 21:01:54 +01:00
- Fixes in type aliases, to make them behave just like the types they alias.
2020-12-22 10:44:42 +01:00
- `array.contains(element)` is now generic.
2020-12-22 21:01:54 +01:00
- Lots of improvements in the JS backend and its type system.
2020-12-22 20:48:26 +01:00
- Simpler and more constinent function arg syntax: `foo(a int, b int, c string)` instead of `foo(a, b int, c string)`
- Lots of fixes and optimizations in the hashmap.
- Lots of missing checks in the type checker were added (for example, checking the correct usage of public struct fields).
- Mutability bug fixes
- Taking the address of a map value is no longer allowed, like in Go.
- Matrix multiplication.
2020-12-22 21:19:05 +01:00
- A new `#pkgconfig` flag to provide platform independent way to get compilation flags for C libraries/packages.
2020-12-22 21:01:54 +01:00
- Explicit parentheses requirement in complex boolean expressions.
2020-12-22 20:48:26 +01:00
- `println` was made even smarter, and can now handle complex types.
- Precompiled text templates can now be used outside of vweb via `$tmpl()` .
- Gitly, a big web application written in vweb has been released: https://github.com/vlang/gitly
- `['/:arg1/:arg2/action']` vweb action attribute for easily getting query parameters assigned to method arguments.
- Improved performance of text rendering, `gg.text_width()` .
- Webview module in V UI.
- Binary enum flags.
- `[export]` attribute to change exported function name (for example for calling from a C library).
2020-12-22 21:01:54 +01:00
- `unsafe` fixes and improvements.
2020-12-22 21:19:05 +01:00
- Improvements to rand: `rand.ulid()` , `rand.uuid()` , a unified customizable PRNG API.
2020-12-22 20:48:26 +01:00
- Hundreds of other fixes, features, and tests (from now on the changelog will be updated
right away as the feature/bug fix lands).
2020-11-28 04:42:27 +01:00
2020-05-06 02:22:57 +02:00
## V 0.1.27
*5 May 2020*
2020-05-06 02:26:43 +02:00
2020-11-28 04:42:27 +01:00
- vfmt has been re-written from scratch using the new AST parser.
2020-10-20 20:14:56 +02:00
It's much faster, cleaner, and can format
2020-05-06 02:22:57 +02:00
files with compilation errors.
2020-05-06 02:26:43 +02:00
- `strconv` , `sprintf` , and `printf` in native V, without any libc calls.
2020-05-06 02:22:57 +02:00
- Interfaces are now a lot more stable and have all expected features.
- Lots of x64 backend improvements: function calls, if expressions, for loops, local variables.
- `map()` and `filter()` methods can now be chained.
- New `[]int{cap:cap, len:len}` syntax for initializing array length and capacity.
- New `is` keyword for checking the type of sum types and interfaces.
- `as` can now be used to cast interfaces and sum types.
2020-10-20 20:14:56 +02:00
- Profiling with `-profile` . Prints a nice table with details about every single function call:
number of calls, average time per call, total time per function
2020-05-06 02:22:57 +02:00
- `import(xxx)` syntax has been removed in favor of `import xxx` for simplicity and greppability.
- Lots of fixes and improvements in the type checker.
- `time.StopWatch`
- `dl` module for dynamic loading.
2020-10-20 20:14:56 +02:00
- Automatic `str()` method generation for every single type, including all arrays.
2020-05-06 02:22:57 +02:00
- Short struct initialization syntax for imitating named function args: `foo(bar:0, baz:1)` .
- New operator `!in` .
- Performance improvements in critical parts of the builtin data structures (array, map).
- High order functions improvements (functions can now be returned etc).
- Anonymous functions that can be defined inside other functions.
- Built-in JSON module is back.
- Closures.
- Lots and lots of new tests added, including output tests that test error messages.
- Multiple errors are now printed, the compiler no longer stops after the first error.
2020-05-10 16:24:43 +02:00
- The new JS backend using the AST parser (almost complete).
2020-05-06 02:22:57 +02:00
- Variadic functions.
- `net.websocket` module (early stage).
- `vlib` is now memory leak free, lots of `autofree` improvements.
- Simplified and cleaned up `cmd/v` , `v.builder` .
2020-05-06 02:26:43 +02:00
- V UI was updated to work with the new backend.
2020-05-06 02:22:57 +02:00
2020-05-02 15:57:26 +02:00
## V 0.1.25
*1 Apr 2020*
2020-05-06 02:26:43 +02:00
2020-11-28 04:42:27 +01:00
- The entire compiler has been re-written with an AST parser.
The code is now a lot cleaner and more maintainable.
2020-10-20 20:14:56 +02:00
~15k lines of old compiler code were removed.
2020-05-02 15:57:26 +02:00
2019-12-31 20:49:11 +01:00
## V 0.1.24
*31 Dec 2019*
2019-11-30 14:49:42 +01:00
2020-11-28 04:42:27 +01:00
- A new parser/generator built on top of an AST that simplifies code greatly
2020-10-20 20:14:56 +02:00
and allows to implement new backends much faster.
2019-12-31 20:49:11 +01:00
- Sum types (`type Expr = IfExpr | MatchExpr | IntegerLiteral`).
- B-tree map (sped up the V compiler by ~10%).
- `v fmt -w` .
2019-12-31 20:54:31 +01:00
- The entire code base has been formatted with vfmt.
2019-12-31 20:49:11 +01:00
- Generic structs.
- SDL module.
- Arrays of pointers.
- os: `is_link()` , `is_dir()` , `exists()` .
- Ranging through fixed size arrays.
- Lots of fixes in ORM and vweb.
2020-10-20 20:14:56 +02:00
- The first tutorial: [building a simple web application with vweb ](https://github.com/vlang/v/blob/master/tutorials/building-a-simple-web-blog-with-vweb.md )
2019-12-31 20:49:11 +01:00
- Match expressions now must be exhaustive.
- freestanding: `malloc()` /`free()`.
- `++` is now required instead of `+= 1` for consistency.
- Interpolated strings now allow function calls: `println('val = $get_val()')` .
- `string.replace_each([])` for an efficient replacement of multiple values.
- More utf8 helper functions.
- `-prealloc` option for block allocations.
- `type` aliases.
- Running `v` with an unknown command will result in an error.
- `atof` implementation in pure V.
- Enums can now have negative values.
- New `filepath` module.
- `math.factorial` .
- `ftp` module.
- New syntax for casting: `val as Type` .
2019-12-31 20:56:04 +01:00
- Fewer libc functions used (soon V will have no dependency on libc).
2019-12-31 20:49:11 +01:00
## V 0.1.23
*30 Nov 2019*
2020-10-20 20:14:56 +02:00
- [Direct x64 machine code generation ](https://github.com/vlang/v/issues/2849 ).
Hello world being built in 3 milliseconds.
- Bare metal support via the `-freestanding` flag, to build programs without linking to libc.
2019-11-30 14:55:31 +01:00
- Prebuilt V packages for Linux, macOS, and Windows.
- `string.index()` now returns `?int` instead of `int/-1` .
- Lots of fixes in Generics.
2019-11-30 14:49:42 +01:00
- vweb framework for developing web applications is back.
2020-10-20 20:14:56 +02:00
- Vorum, the forum/blogging software written in vweb, can now be compiled and has been added to CI.
2019-11-30 14:49:42 +01:00
- REPL, `v up` have been split up into separate applications to keep the core V compiler small.
- V now enforces short enum syntax (`.green` instead of `Color.green` ) when it's enough.
- V UI for macOS.
- Interfaces have been rewritten. `[]interface` support.
- `os.cp()` for copying files and directores.
- Additional compile-time flags: `$if clang, msvc, mingw, x32, x64, big_endian, little_endian {` .
- All C functions now have to be declared, all missing C functions have been defined.
2020-11-28 04:42:27 +01:00
- Global variables (only with the `--enable-globals` flag)
2020-10-20 20:14:56 +02:00
for low level applications like kernels and drivers.
2020-02-21 14:17:27 +01:00
- Nothing can be cast to bool (previously code like `if bool(1) {` worked).
2019-11-30 14:49:42 +01:00
- `<<` and `>>` now work with all integer types.
2020-02-21 14:17:27 +01:00
- V detects Cygwin and shows an error (V supports Windows natively).
2019-11-30 14:49:42 +01:00
- Improved type checking of some operators (`%, |, & ` etc).
- Windows 7 support.
- `println(true)` now prints `true` instead of `1` .
- `os.exec()` now uses `CreateProcess` on Windows.
- fast.vlang.io website for monitoring the performance of V after every commit.
- On Windows Visual Studio is now used automatically if GCC is not installed.
- vfmt!
- Lots of cleaning up in the compiler code.
- Multi-level pointers in unsafe code (`****int`).
- MSVC backtrace.
- `$if os {` blocks are now skipped on a different OS.
- C string literals (`c'hello'`).
- AlpineLinux/musl fixes + added to CI.
- Inline assembly.
- Clipboard module (Windows, macOS, X).
- `foo()?` syntax for error propagation.
- Docs have been migrated from HTML to `doc/docs.md` .
2019-11-30 14:55:31 +01:00
- `eventbus` module.
- Haiku OS support.
- `malloc/free` on bare metal.
- `utf8` helper functions (`to_lower()`, `to_upper()` , etc).
- Optimization of `for c in str {` .
2020-10-20 20:14:56 +02:00
- `string/array.left/right/slice/substr` were removed (use `[a..b]` slicing syntax instead).
2019-11-30 14:55:31 +01:00
2019-11-30 14:49:42 +01:00
2019-10-28 11:12:29 +01:00
## V 0.1.22
*28 Oct 2019*
- Generic functions (`fn foo< T > (bar T) T {`) with varargs support.
- `array[start..end]` and `string[start..end]` slicing syntax.
- Optimized `array.filter()` and `array.map()` .
- `sqlite` module.
- Cached modules for faster compilation.
2020-10-20 20:14:56 +02:00
- Dramatic compilation optimizations: [V now compiles itself in 0.10 - 0.30 seconds ](https://github.com/vlang/v/wiki/The-V-language-now-compiles-itself-in-0.09-seconds )
2019-10-28 11:12:29 +01:00
- V scripts (simpler and cross-platform alternative to Bash).
- Infinite multi-dimensional arrays (`[][][]int`).
- `unsafe` .
- `[deprecated]` attribute.
2020-02-21 14:17:27 +01:00
- `[if]` function attributes for compile time function exclusion for performance.
2019-10-28 11:12:29 +01:00
- `switch` has been completely removed from the language and replaced by
`match` everywhere.
- `pub struct` and `pub const` , previously all structs and consts were public
by default.
- `musl` support (V can now run on, for example, Alpine Linux).
- Module header generation. V now supports closed source modules, which are still
used in some industries.
- Constants were added to typo suggestions.
- `color in [.green, .red, .blue]` now works without specifying `Color.green` .
- V compiler is now a module that can be used by other programs.
- Backtraces now have source lines on Linux.
- `runtime.nr_cpus()` .
- `fn init()` for module initialization.
- `a in [1, 2, 3]` optimization: no array gets allocated.
- Raw strings: `s := r'hello\nworld'` .
- `if a := func() { }` syntax for handling optionals.
- f32/f64 comparison now uses machine epsilon by default.
2019-09-21 16:42:38 +02:00
## V 0.1.21
2019-09-30 21:39:52 +02:00
*30 Sep 2019*
2019-09-21 16:42:38 +02:00
- `none` keyword for optionals.
2019-09-30 21:39:52 +02:00
- Solaris support.
2019-09-21 16:42:38 +02:00
- All table lookup functions now use `none` .
2020-02-21 14:17:27 +01:00
- varargs: `fn foo(bar int, params ...string) {` .
2019-09-22 16:24:44 +02:00
- Double quotes (`"`) can now also be used to denote strings.
2019-09-21 16:42:38 +02:00
- GitHub Actions CI in addition to Travis.
- `-compress` option. The V binary built with `-compress` is only ~90 KB!
- More memory management.
2019-09-30 21:39:52 +02:00
- Unused modules result in an error.
- "Unused variable/module" errors are now warnings in non-production builds.
- Duplicate methods with the same name can no longer be defined.
- Struct names must be capitalized, variable/function names must use snake_case.
- Error messages are now even nicer!
- Lots of fixes in automatic `.str()` method generation for structs and arrays.
- ~30% faster parser (files are no longer parsed separately for each pass).
- `_` is no longer a variable, but an actual syntax construct to skip unused values, like in Go.
2019-09-30 23:17:54 +02:00
- Multiple returns (`fn foo() (int, string) {`).
2019-09-30 21:39:52 +02:00
- `!` can now only be used with booleans.
2019-09-21 16:42:38 +02:00
2019-09-17 12:58:21 +02:00
## V 0.1.20
2019-09-17 21:24:53 +02:00
*17 Sep 2019*
2019-09-17 12:58:21 +02:00
- JavaScript backend!
- Hundreds of C warnings were fixed. `gcc v.c` now builds without
any warnings.
- The mutability check now applies to function args (mutable
receivers that are not modified result in a compilation error).
- V tests now show how long each test took.
2019-09-17 21:24:53 +02:00
- Official Android support (only console applications via Termux for now).
2019-09-17 12:58:21 +02:00
- Typo check. If a variable/function/module etc is misspelled,
V will suggest the correct name.
- Lots of Microsoft C fixes, and a separate Travis instance for
this backend.
- Bitwise operators `|` , `^` , `&` no longer work with booleans.
2019-08-22 23:26:59 +02:00
## V 0.1.19
2019-09-12 02:59:24 +02:00
*12 Sep 2019*
2019-08-22 23:26:59 +02:00
2019-09-12 02:59:24 +02:00
- Lots of refactoring, simplifications, and optimizations in the compiler.
- Experimental memory management at compilation (only for the V compiler itself for now).
- Lots of ORM fixes.
- Functions can now be inlined via the `[inline]` attribute.
2019-08-22 23:26:59 +02:00
- New `mysql` module.
- Better error format that is supported by all major editors (go to error).
2019-09-12 02:59:24 +02:00
- Error messages now point to the actual place where the error happened.
- Custom json field names: `struct User { last_name string [json:lastName] }` .
2019-08-22 23:26:59 +02:00
- Raw json fields via the `[raw]` attribute.
- All C code was removed from the `freetype` module.
2019-09-12 02:59:24 +02:00
- `gg` module can now render all Unicode characters.
2019-08-23 02:10:37 +02:00
- `[typedef]` attribute for imported C struct typedefs.
2019-08-22 23:26:59 +02:00
- Support of Objective C interfaces (primarily for using Cocoa).
- REPL: clear command and custom functions.
2019-09-12 02:59:24 +02:00
- REPL tests (which are also used for testing certain compiler errors).
2019-08-22 23:26:59 +02:00
- Syntax bug fixed: `foo[0] += 10` is now possible.
- http: support plain HTTP protocol and follow redirects.
2019-09-12 02:59:24 +02:00
- http: header data is now processed correctly.
2019-08-22 23:26:59 +02:00
- net: basic UDP support.
2019-09-12 02:59:24 +02:00
- `import const` was removed from the language.
- `array.contains()` was removed from the language (`in` should be used instead).
- `[0; len]` syntax was removed (replaced with a simpler `[0].repeat(len)` )
- Primitive aliases were removed to simplify the language.
- GitHub supports V now!
- Backtraces are now printed on panics.
- A new awesome `readline` module.
- V.c is now regenerated automatically after every commit.
- A bug with struct ordering was fixed, now structs can be declared in any order.
- V modules can now be built with `v build module` .
- `@FILE, @LINE, @FN, @COLUMN` for debugging.
2019-08-22 23:26:59 +02:00
2019-08-03 10:26:36 +02:00
## V 0.1.18
2019-08-22 23:26:59 +02:00
*16 Aug 2019*
2020-02-21 14:17:27 +01:00
- Built-in ORM (`uk_customers = db.select from Customer where country == 'uk' && nr_orders > 0`).
- Map initialization syntax: `m := { ‘ foo’ : ‘ bar’ , ‘ baz’ : ‘ foo’ }` .
2019-08-22 23:26:59 +02:00
- `map.delete(key)` .
- `libcurl` dependency was removed from the `http` module.
- All function arguments are now immutable by default (previously they could be
modifed inside the function).
- `http` functions now return optionals.
- `sync.WaitGroup` .
- `vweb` static files serving.
- `crypto.rand` module.
- `v up` to update V.
- SChannel support on Windows.
- `net.urllib` module.
- vpm package manager, `v install` .
2020-02-21 14:17:27 +01:00
- `()` are now required in complex bool expressions: `(a && b) || c` instead of `a && b || c` .
2019-08-22 23:26:59 +02:00
- All arrays now have a default `.str()` method.
- Bootstrapping V with MSVC.
2019-08-16 23:48:04 +02:00
- Experimental `≠` etc support.
2019-08-22 23:26:59 +02:00
- `encoding.csv` module.
- `$if debug {` for running code in debug mode only.
- Map struct fields are now initialized automatically, just like arrays.
- Maps now support array values.
- `json` functions can no longer be used if the `json` module is not imported.
## V 0.1.17
*29 Jul 2019*
- `vweb` module for developing web apps in V.
- vtalk, open source V forum software.
- Generics (very limited right now, but they will be gradually improved).
- Comptime codegen (`foo.$method()` where `method` is a string).
- @ for escaping keywords (e.g. `struct Foo { @type string }` ).
- Windows Unicode fixes (V can now work with non-ASCII paths etc on Windows).
- Fix mutable args bugs + don't allow primitive arguments to be modified.
2019-07-25 14:13:35 +02:00
- Declaring a mutable variable and never modifying it results in a compilation error.
2019-07-29 18:44:48 +02:00
- Interactive debugging support.
- `sync` module for Windows.
- `#!` support on Unix systems (V scripts).
- Lots of Visual Studio fixes.
- `crypto.aes` and `crypto.rc4` modules.
- Internal modules.
2019-08-22 23:26:59 +02:00
## V 0.1.16
*23 Jul 2019*
- V can now be used with Visual Studio!
- Hot code reloading now works with graphical applications (e.g. graph.v, bounce.v).
- Compile time memory management for arrays.
- High order functions.
- `match` expression (replacing `switch` ).
- Import cycle detection.
2019-07-24 00:44:54 +02:00
- `crypto/md5` , `crypto/sha256` , and `crypro/sha512` modules.
2019-08-22 23:26:59 +02:00
- `os.executable()` - a cross platform function that returns full path to current executable.
- `~/.vlang` and `VROOT` were removed entirely. The installation is a lot cleaner now.
- V can now be packaged for all Linux distros.
- Arch Linux package.
- `string(bytes_buffer, len)` , `string(bytes_array)` casts.
- Multiple `defer` s.
- `key in map` syntax (replacing `map.exists(key)` ).
2019-07-16 15:29:27 +02:00
2019-08-22 23:26:59 +02:00
## V 0.1.15
*15 Jul 2019*
- FreeBSD, OpenBSD, NetBSD, DragonFly support.
2020-10-20 20:14:56 +02:00
- Hot reloading now works with graphical applications: [bounce.v ](examples/hot_reload/bounce.v )
2019-08-22 23:26:59 +02:00
- VROOT was removed, the installation process is now much simpler.
2019-07-16 00:03:20 +02:00
- `defer` statement.
2019-07-15 23:56:18 +02:00
- map.v was re-written. It's now much faster.
2019-08-22 23:26:59 +02:00
- `for key, val in map` syntax.
- `flag` module for parsing command line arguments.
- `zip` module.
- `crypto/sha1` module.
- Submodules and module aliases (`import encoding.base64 as b64`).
2019-07-15 23:56:18 +02:00
2019-08-22 23:26:59 +02:00
## V 0.1.14
*12 Jul 2019*
- `gg` module Windows support, V Tetris runs on Windows.
2020-10-20 20:14:56 +02:00
- Compile `glad` and `cJSON` only once. Programs using `gg` or `json` compile a bit faster.
2019-08-22 23:26:59 +02:00
- `v.c` has been cleaned up and minimized (~16k => ~10k lines of code).
- `type` aliases can now have methods.
2020-02-21 14:17:27 +01:00
- Const overflow check during compilation (`byte(1000)` will no longer compile).
2019-07-12 05:23:00 +02:00
2019-07-12 16:11:32 +02:00
## V 0.1.13
2019-08-22 23:26:59 +02:00
*10 Jul 2019*
2019-07-10 09:22:42 +02:00
- New enum syntax (`token == .name`), enum values are no longer global consts.
- Submodules (`import encoding.base64`).
- Hot code reloading.
- Special `err` variable for getting error values.
- Complex numbers.
- `<<` can now append arrays (`numbers << [1, 2, 3]`).
- Lots of Windows fixes (Windows still needs some work).
- Lots of REPL improvements (e.g. `>> 2 + 3` works now, no `println` required).
- The website was made easily translatable, it's now partially available in several languages.
2019-07-10 09:19:30 +02:00
2019-07-12 16:11:32 +02:00
## V 0.1.12
2019-08-22 23:26:59 +02:00
*4 Jul 2019*
2020-02-21 14:17:27 +01:00
- V can finally compile itself on Windows (https://github.com/vlang/v#mingw-w64).
2020-11-28 04:42:27 +01:00
- `os` module now uses optionals in all functions that return `File` .
2020-10-20 20:14:56 +02:00
- Lots of bugs with optionals were fixed.
2020-11-28 04:42:27 +01:00
- `println` was optimized. It no longer results in allocations.
2020-10-20 20:14:56 +02:00
Now it also works correctly with all integer types.
2019-08-22 23:26:59 +02:00
- Lots of `vfmt` fixes, it will be enabled tomorrow.
2019-07-04 02:38:28 +02:00
- New `strings` module.
2019-08-22 23:26:59 +02:00
- Lots of other fixes and improvements, thanks to all the contributors.
2019-07-04 02:38:28 +02:00
2019-07-10 09:19:30 +02:00
2019-07-12 16:11:32 +02:00
## V 0.1.11
2019-08-22 23:26:59 +02:00
*1 Jul 2019*
2019-07-04 02:39:14 +02:00
- Cross compilation for Windows!
2020-02-21 14:17:27 +01:00
- Lots of Windows fixes.
- socket.v.
- maps fixed.
2019-07-04 02:39:14 +02:00
2019-06-28 13:49:34 +02:00
2019-08-23 02:10:37 +02:00
## V 0.1.9 - 0.1.10
2019-08-22 23:26:59 +02:00
*29 Jun 2019*
2019-06-29 22:05:02 +02:00
- Windows support via MinGW-w64. Pre-built Windows binary.
- File structure has been simplified: all vlib modules were moved to the vlib/ directory,
makefile was moved to the root.
2019-08-22 23:26:59 +02:00
- One single archive with pre-built binaries for all operating systems.
2019-06-29 22:05:02 +02:00
- `mut var := val` was fixed (previously `mut var = val` was allowed as well).
2020-02-21 14:17:27 +01:00
2019-08-23 02:10:37 +02:00
## V 0.1.8
2019-08-22 23:26:59 +02:00
*28 Jun 2019*
2019-06-28 13:49:34 +02:00
- Single file programs without `fn main` now work as expected.
2019-06-29 18:05:57 +02:00
- REPL has been fixed: it now supports imports, consts, function definitions, etc.
2019-06-28 13:49:34 +02:00
2020-02-21 14:17:27 +01:00
2019-08-23 02:10:37 +02:00
## V 0.1.7
2019-08-22 23:26:59 +02:00
*27 Jun 2019*
2019-06-27 22:48:46 +02:00
- All C code in the compiler and vlib has been replaced with V.
2019-06-27 23:41:13 +02:00
- `#` syntax for embedding C code has been removed.
2019-06-27 22:48:46 +02:00
- Exported functions now need to be marked with `pub` , all public vlib functions have been updated.
- CI has been set up (Travis + Azure). On every commit and PR it is made sure that V
can compile itself, all tests pass, and all examples compile.
- More tests have been uploaded.
- Cleaner bytes to string conversion: `tos2(bytes)` => `string(bytes)` .
- The home page has 3 more examples next to 'hello world' that show the features of the language.
- Lots of bugs and issues fixed.