Mochi

Latest version: v0.2.7

Safety actively analyzes 630566 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

0.2.3

* Fix a bug about translating getattr syntax
* Add -no-mp option and remove -pyc-no-mp option
* Fix a bug that always execute eventlet's monkey_patch
* Fix a bug introduced by fixing a bug that always execute eventlet's monkey_patch
* Change lexer to ignore new lines at front of ".<NAME>"
* Change a version of pyrsistent to 0.10.1
* Improve parsing error message a little (this is associated with 29)
* Fix a grammar bug of 'match'
[before]
match 10 + 10:
20: "success!"
=> ParsingError
[after]
match 10 + 10:
20: "success!"
=> success!
Add binary infix operators

0.2.2

* Ignore sorrounding newlines of a infix operator
[example]
def fizzbuzz(n):
match [n % 3, n % 5]:
[0, 0]: "fizzbuzz"
[0, _]: "fizz"
[_, 0]: "buzz"
_: n
range(1, 31)
|> map(fizzbuzz)
|> pvector()
|> print()
* Add lexical tokens showing command option (--show-tokens)
* Add automatic tests for development of mochi
* Add first Dockerfile
* Clean some source codes and setup scripts

0.2.1

* Use 'MessagePack' instead of 'Pickle' to encode messages for a remote actor
* Add ActorAddressBook
[example:server]
>>> hub = ActorHub() equals to ActorHub('tcp://*:9999')
>>> hub.register('test', spawn(() -> print('test!')))
>>> hub.run()
>>> address_book = ActorAddressBook('127.0.0.1:2181') specify ZooKeeper's address
>>> address_book.register('print_test', 'tcp://127.0.0.1:9999/test')
[example:client]
>>> address_book = ActorAddressBook('127.0.0.1:2181')
>>> actor = address_book.lookup('print_test')
>>> actor ! 'any message'

0.2.0.1

* Add a workaround for a monkey_patch's bug on Windows

0.2.0

* Add ActorHub and RemoteActor

0.1.9

* Support type annotation to each fields of a record
* Support checking type of each fields at runtime
* Add typed vector syntax
[example]
>>> vector IntVector[int]
>>> IntVector([1, 2, 3])
IntVector([1, 2, 3])
* Add functions in typeannotations module to builtin functions

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.