Live data from Hacker News

Viewing profile — bakery2k

bakery2k

HN member
Joined
Mon, Jun 06, 2016, 11:14 AM UTC
HN karma
433
Public activity
165 items

About bakery2k

No profile information was provided.

Recent public activity

  1. comment
  2. comment
    Comment #22614928

    > what can you expect from a language that uses "+", the quintessential notation for commutative operations, for the (very non-commutative) operation of concatenation? Is this any …

  3. comment
    Comment #22582600

    So, Envoy will be embedding WebAssembly alongside (or instead of) Lua? Are other projects moving from Lua (or other embedded scripting languages) to WebAssembly? What are the benef…

  4. story
  5. comment
    Comment #22347328

    Thanks, that makes sense.

  6. comment
    Comment #22347297

    > It was released just as the PS2 was announced 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).

  7. comment
    Comment #22347233

    Isn't code generation during parsing still common today? In particular, bytecode generation in interpreters (and JIT compilers) for scripting languages, e.g. Lua?

  8. comment
    Comment #22347212

    `range` is an example. Lack of support for overloading makes it harder to replicate its API in our own functions.

  9. comment
    Comment #22347208

    Well, however the `range` function is implemented, IMO its API would be better expressed as true overloading - as two functions with the same name.

  10. comment
    Comment #22346803

    If all we do is write Pythonic code (especially now that "Pythonic" seems to include type hints), what's the benefit of the highly dynamic CPython virtual machine? Surely a faster …

  11. comment
    Comment #22346776

    `range(stop)` and `range(1, stop)` are both supported, but without overloading, the implementation of `range` is messy as it has to work out the meaning of each argument manually.

  12. comment
    Comment #22346729

    That's the thing - it's documented as overloaded, because that's the most intuitive explanation. Wren would allow it to actually be implemented as an overloaded function. Python do…

  13. comment
    Comment #22346444

    The Wren scripting language supports this kind of "overloading by arity" [0]. Wren therefore allows overloads such as `range(stop)` and `range(start, stop)`. This is more intuitive…

  14. comment
    Comment #22341174

    "Distances longer than a few kilometers are measured in miles" was a direct reference to the OP's "yards to measure distances shorter than a few kilometers".

  15. comment
    Comment #22341168

    I think Jedd was commenting on the spelling of "meter" vs "metre".

  16. comment
    Comment #22341095

    The UK doesn't use the metric system for distances, at least when talking about travel. The only switching is from yards to miles.

  17. comment
    Comment #22340937

    That shouldn't be surprising. Distances longer than a few kilometers are measured in miles.

  18. comment
    Comment #22099265

    > an engineer in silicon valley Good point. The biggest factor that determines an engineer's salary is location, followed by years of experience. Not whether they work on compilers…

  19. comment
    Comment #22099055

    From GitHub [1]: "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 …

  20. comment
    Comment #22098971

    I wonder if it's similar to embedded software development (which also requires "rigorous working methods"). Salaries for embedded are generally lower than for web development becau…

  21. comment
  22. comment
    Comment #21904971

    In a language like Python that encourages duck typing, type hints can become extremely complex [1] and can get in the way of the ideal of "executable pseudocode" [2]. [1] https://m…

  23. comment
    Comment #21902768

    Spot on. Static typing has benefits, but it also has a cost. Python's optional type hints have all the complexity but only some of the benefits - in my experience, runtime type err…

  24. story
  25. comment
    Comment #21862963

    > the actual creator of the language was so against the addition of this operator that he saw the community’s insistence on it as reason to step down as BDFL. That's backwards. The…