Hacker News new | past | comments | ask | show | jobs | submit login
Everything Isa (2014) (c2.com)
58 points by galfarragem on June 3, 2019 | hide | past | favorite | 21 comments



Python’s “everything is a writable, string-indexed dictionary“ is clearly meant for Javascript. Python’s dictionaries are extremely non-string-indexed!

Given how descriptors work I feel like “everything is a proxy wrapper for a dictionary” encapsulates everything in Python a bit better


Tangent: anybody knows what happened to C2?


A jerk who was pissed about the editing rules started vandalizing content en mass. It seems Ward got tired of battling him/her/it and switched on some kind of serverless or distributed version of the wiki that he had been working on as an alleged alternative. Most find it baffling and/or unusable. That effectively killed the wiki, at least to new authoring. Maybe after Ward realizes it's a flop, he'll go back to something more familiar. (It might have other uses, just not as a public wiki or discussion board.)

Ward Cunningham is considered the inventor of wikis, by the way.


I just navigated to the link directly, and everything seems fine.

http://wiki.c2.com/?EverythingIsa


It's all read-only now. Changes are no longer allowed, at least not as seen there.


They took a perfectly good website and rewritten it as an SPA.


> PythonLanguage: everything is a writable, string-indexed dictionary.

What do you mean? Unicode or Bytes? Or Both?


In python a dictionary key can be any `hashable` object. In practice this means almost any immutable type can be used (e.g. unicode strings, bytes, tuples, etc).

However, unicode strings are by far the most common dictionary key and the core language uses them extensively.


Isabelle - everything is proven. (Is a proof.)


Everything isa belle, surely.


Shouldn't Erlang be "Everything is a process"?

And Elixir would be "Everything is a process, but in Ruby".


"Everything" is a type; "everything" is a variable.


JavaScript - everything is a hack.


Please don't post unsubstantive comments here. We don't want programming language flamewars on HN.


JavaScript - everything is a hack, except when it's not a hack.

Therefore "hack === hack // false"



Checks out. NaN === NaN // false


NaN is 'not a number' A string is not a number A function is not a number If 'not a number' === 'not a number' then any string === any function

This is a joke...


Rules around NaN aren't Javascripts fault; it's IEEE floating-point idiocy that a given NaN doesn't compare equal to itself.

That is a corruption. It should never be the case that a thing is not itself.


this


You saw your chance and you took it. And for that, I respect you.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: