Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bhdz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
bhdz
13y ago
? -> English?
32.
▲
by
bhdz
13y ago
Well it's kind of a joke at the expense of the people who push these things into existence on the web. I managed OK till the js part, and got bored (I suck at js anyway)
33.
▲
by
bhdz
13y ago
For more: git clone https://github.com/bhdz/glaslang.git
34.
▲
by
bhdz
13y ago
In fact, the symbols that form the syntax, doesn't matter at all: standard symbol set: ~ # access, forward (standard) object ~ property -> # access, backward ("homosexual" call if you will) method -> object -&
35.
▲
by
bhdz
13y ago
Glas doesn't care about keywords actually, the only "keywords" are the syntactic elements like ~ -> ->> { [ {{ {> <} so you write: if: something ~ happened: and: something else ~ happened: logic ~ did: some
36.
▲
by
bhdz
13y ago
Ah yes! {{ \t, "eject eject eject!" }} auto destruct: 20s -> space ship {> user ejected % wait: 20s, any -> input <} {{ "Your ship explodes in a gigantic fireball!" }} if: empty: -> input ->&#
37.
▲
by
bhdz
13y ago
a space adventure = space ship, blasters, rockets, lasers, *, **: -> Space Ship: space ship ~ attach weapons: blasters, rockets, lasers: {{ "Eeeekkrrrrgh! Weapons attached successfully!" }} {{ "li
38.
▲
by
bhdz
13y ago
Nevermind that, listen to this: nevermind: that --> listen: this ~ to # nevermind(that).listen(this.to) # All you do is complain and whine to your boss, # slacking, sipping a lot of coffee at the coffeeshop: comp
39.
▲
by
bhdz
13y ago
Now you can use the familiar do something: a dict ['some key'], coordinates['x']
40.
▲
by
bhdz
13y ago
New ROCKING syntax! #!/usr/bin/env glas # # Yay, and hear these spoken words of wisdom, Stranger: # and: he ~ walked: through the valley ~ valley + shadows & valley + shadows +
41.
▲
by
bhdz
13y ago
If you find '.' and ''' and ''s' offending, you can change the symbol to the old dot and "@" for instance. and that's much better than that.much better, don't you think? cookie adventure: my @ Cookie Monster = print "Cookie M
42.
▲
by
bhdz
13y ago
I have a better idea for a new language based on python: and walked: "through the valley"' he's and feared: not: "evil"! # he.and_walked("through the valley").and_feared(not("evil"))! drop down:' criminal scum! # criminal
43.
▲
by
bhdz
13y ago
Just like Python, Glas (Глас) doesn't really distinguish between dicts, objects or methods/functions. For it functions are just a fancier version of objects which are a fancier version of normal dicts. Later on, during evaluation, Glas make
44.
▲
by
bhdz
13y ago
Ah! Yes! :) I had some kind of a satori Saturday, so it's still just a glas.py file which aims are being a simple as possible translator into Python. (for now it just parses it and evals it like a barbarian, and still not workable ;)) I wil
45.
▲
by
bhdz
13y ago
:D It doesn't care basically if it's encountering a dict ({}), an object, or a function/method. If it's not a function then it's either a dict OR another object instance. it it's a function it applies it! Glas treats everything as potential
46.
▲
My newest invention: The Glas Language (A Pythonic offshot)
5 points
by
bhdz
13y ago
|
13 comments
47.
▲
Tags & Upvote problem
1 points
by
bhdz
16y ago
|
0 comments
48.
▲
by
bhdz
16y ago
You're probably downvoted because of "fear mongering racists" & "economic agenda." Now you're left with the "scientific term" for marijuana which is fine but off-topic (which is Prop 19, Reddit & CN). Ytiquette is not written anyw
49.
▲
by
bhdz
16y ago
It would be an interesting experiment if a blogger adds a small disclaimer: "This is a work of fiction &| gossip" to his "libelous, slanderous" "claims"... Or put every adjective in "quotes" with "some say" at the beginning. This would
50.
▲
by
bhdz
16y ago
Yours should be more like 'front defence.' Anyway, good job, I would definitely remove it from the 'experiments' section if I were you, this game is popular... I like how the turrets are missing from time to time. PS: Why front(+al) defen
51.
▲
by
bhdz
16y ago
Ok HN :-/ However, for those interested in model package loading automation, I started a section on reddit: http://www.reddit.com/r/django/comments/d1ulg/automatic_mode... , may be I'm wrong... Sorry for bothering you...
52.
▲
by
bhdz
16y ago
Model package management: It's a dirty kludge. Not documented (last time I've checked), I had to search hard to get it right. You must edit models/__init__.py such that: import X from Y ...and then each model must have class
53.
▲
by
bhdz
16y ago
Would you include Haskell in?
54.
▲
Where is George? (A money tracking system.)
(wheresgeorge.com)
1 points
by
bhdz
17y ago
|
1 comments