Skip to content

Releases: grol-io/grol

v0.34.0

05 Aug 14:58
6b4aac6
Compare
Choose a tag to compare

This is a big release/set of changes! (see examples/ and more details below)

  • extensibility, add any go function, used it for a lot of what follows:
  • math functions (pow, trigonometry functions (sin,cos,tan,asin,acos,atan) etc)
  • constants like PI and E
  • floating point exponent (eg 1.2e-3), underscore number separator (eg 1_000_000)
  • printf/printf
  • variadic functions either go side and grol side using .. special last argument

What's Changed

  • Added support for extensions, including usage and args check - use it to add math functions by @ldemailly in #96
  • Variadic grol side by @ldemailly in #99
  • handle exponent notation floats and _s by @ldemailly in #104
  • ALL_CAPS are now constants. Changed/shared recursive function environment. Fixed bug with macro environment. Added pprof. by @ldemailly in #102

More mundane:

  • STRING token in right section, DebugString() compact mode by @ldemailly in #100

Full Changelog: v0.33.1...v0.34.0

Changelog

  • 6b4aac6 ALL_CAPS are now constants. Changed/shared recursive function environment. Fixed bug with macro environment. Added pprof. (#102)
  • 4d9664f Added support for extensions, including usage and args check - use it to add math functions (#96)
  • 0011c9e STRING token in right section, DebugString() compact mode (#100)
  • e6fb1f8 Variadic grol side (#99)
  • e5f18a8 handle exponent notation floats and _s (#104)

v0.33.1

03 Aug 00:04
6c11401
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.33.0...v0.33.1

Changelog

v0.33.0

02 Aug 19:08
f5798dc
Compare
Choose a tag to compare

What's Changed

  • You can now use func name(...) {....} as short for name=func(...) {...} by @ldemailly in #92

Full Changelog: v0.32.0...v0.33.0

Changelog

  • f5798dc implement func name(...) {....} as short for name=func(...) {...} (#92)

v0.32.0

02 Aug 17:41
d8fedc3
Compare
Choose a tag to compare

What's Changed

  • Adding println(), suppress all log() output when -quiet is passed to the interpreter (log level >= error) by @ldemailly in #90
  • Allow else if by @ldemailly in #91

Full Changelog: v0.31.1...v0.32.0

Changelog

  • bedeb61 Adding println, suppress all log() output when -quiet is passed to the interpreter (log level >= error) (#90)
  • d8fedc3 Allow else if (#91)

v0.31.1

02 Aug 08:24
9cfa42a
Compare
Choose a tag to compare

What's Changed

  • Use log.Info for welcome message so -quiet suppresses it + fix of extra newline using -c. (#88)

Full Changelog: v0.31.0...v0.31.1

Changelog

  • 9cfa42a use loginfo for welcome so -quiet supresses it. check in a test and also don't println result that already include a \n (#88)

v0.31.0

02 Aug 07:36
1124530
Compare
Choose a tag to compare

What's Changed

  • Auto memoization, super mega perf improvement; also "Share" button on wasm/online by @ldemailly in #86

Full Changelog: v0.30.0...v0.31.0

Changelog

  • 1124530 Auto memoization, "Share" button on wasm/online (#86)
  • c6003f3 add missing compact eval

v0.30.0

01 Aug 22:39
2d6229a
Compare
Choose a tag to compare

What's Changed

  • Added repl.CompactEvalString bool as a way to get compact version in wasm (and upcoming in grol) by @ldemailly in #85

Full Changelog: v0.29.0...v0.30.0

Changelog

  • 2d6229a Adding a way to get compact version in wasm (and upcoming in grol) (#85)

v0.29.0

01 Aug 21:46
38a3f9d
Compare
Choose a tag to compare

What's Changed

  • Add self() for anonymous function recursion by @ldemailly in #83
  • New -compact mode, also use for eval when printing function objects by @ldemailly in #84

Full Changelog: v0.28.0...v0.29.0

Changelog

  • e012b22 Add self() for anonymous function recursion (#83)
  • 38a3f9d new -compact mode, also use for eval when printing function objects (#84)

v0.28.0

01 Aug 17:03
aa14201
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.27.0...v0.28.0

Changelog

v0.27.0

29 Jul 21:39
d4321a2
Compare
Choose a tag to compare

What's Changed

  • Keeping line comments on same line when formatting by @ldemailly in #80
  • New simpler api for grol New(), Parse(input), Run(io.Writer); switch lex'ing lookup of 2 char to [2]byte from string by @ldemailly in #75

and

  • Bump docker/setup-buildx-action from 3.5.0 to 3.6.1 by @dependabot in #76
  • Bump fortio.org/cli from 1.7.0 to 1.8.0 in the fortio group by @dependabot in #77

Full Changelog: v0.26.0...v0.27.0

Changelog

  • f3177a5 Bump docker/setup-buildx-action from 3.5.0 to 3.6.1 (#76)
  • 724b4a2 Bump fortio.org/cli from 1.7.0 to 1.8.0 in the fortio group (#77)
  • d4321a2 Keeping line comments on same line. (#80)
  • f3d2179 New simpler api for grol New(), Parse(input), Run(io.Writer); switch lex'ing lookup of 2 char to [2]byte from string (#75)