Is this any worse than using `+` for floating-point addition, which isn't even associative?
433 karma · joined June 6, 2016
Is this any worse than using `+` for floating-point addition, which isn't even associative?
Are other projects moving from Lua (or other embedded scripting languages) to WebAssembly? What are the benefits of compiling an extension to WASM rather than writing it in Lua?
I think that's the point. A lot of people bought a PS2 because it was also a DVD player (same with the PS3 and Blu-ray).
Surely a faster VM, or even an ahead-of-time compiler, would be possible if we give up on some dynamism? Is that a direction the community should take?
(I think Guido's answer would be no, based on his apparent dislike of existing "Python compiler" projects such as Nuitka.)
Python doesn't support overloading, and it doesn't support optional arguments before required ones, so the actual implementation in Python is a bit messy - something like:
def range(start_or_stop, optional_stop=None):
if optional_stop is None:
start = 0
stop = start_or_stop
else:
start = start_or_stop
stop = optional_stop
...Wren therefore allows overloads such as `range(stop)` and `range(start, stop)`. This is more intuitive than Python's `range(start=0, stop)`, which might be the only function in the language that has an optional parameter before a required one.
Good point. The biggest factor that determines an engineer's salary is location, followed by years of experience. Not whether they work on compilers/embedded/web/whatever.
"Plans to try MIR light-weight JIT first for CRuby or/and MRuby implementation"
"MIR is strongly typed"
Is there an explanation of how the project bridges the gap between dynamically-typed Ruby and statically-typed MIR?More generally, I'd love to see something like MRuby+MIR be successful. It would be great to see an alternative to the aging LuaJIT.
[1] https://mail.python.org/pipermail/python-dev/2015-April/1392...
> To me it feels like python is running as far away from simplicity as fast as possible.
Despite its reputation, Python hasn't been a simple language for a long time.
That's backwards. The community was generally opposed to the walrus operator, and Guido stepped down because of (among other things) the community's reaction when he insisted on adding it.
1. Here's an interesting puzzle.
2, 3, 4, 5. These are the steps I took to solve it.
6. Hence the solution is X.
or using BLUF: 1. Here's an interesting puzzle.
2. I found the solution is X.
3, 4, 5, 6. These are the steps I took to find that solution.
I'm still not sure which structure would be the best choice in which situation. Are there any guidelines?