Hacker Newsnew | past | comments | ask | show | jobs | submit | HeraldEmbar's commentslogin

The home page is fairly free of any details about SaC, though I do now know an awfully lot about who is involved. Also, there's no reference manual.

Where can I find a tutorial, examples, or any concrete details?


There's a docs page linked from the home page with a tutorial and various other docs:

http://www.sac-home.org/doku.php?id=docs:main


There needs to be detailed comments for at least ONE of those examples! Very cool. I've looked into k and J...they look like fun toy languages.


Most of the examples have a moderate supply of comments. Here are a few I cherrypicked:

https://raw.githubusercontent.com/JohnEarnest/ok/gh-pages/ik... ("dissolve" effect)

https://raw.githubusercontent.com/JohnEarnest/ok/gh-pages/ik... (UPC generator)

https://raw.githubusercontent.com/JohnEarnest/ok/gh-pages/ik... (random island coasts)


They’re not toy languages. Both have widespread use in industry (J less so) and come with mid 6 digit or more support contracts.


> Artifact had in effect a perfectly reasonable economic model, but players did not see it that way.

CCG player stockholm syndrome is why we can't have nice things.


>> Artifact had in effect a perfectly reasonable economic model, but players did not see it that way.

I don't think it really did though. Artifact took Magic the Gathering's payment model verbatim (pay for a starter set, pay for booster packs, pay for entrance any activities where you might win more cards) but removed the thing that makes that work for Magic the Gathering: face to face interaction with other human beings at your Local Game Store. If we compare it vs. it's more direct competition (digital CCGs) it's a worse proposition for the average non/low spending player, but even if we do the kindest thing and compare it against what it's directly copying it's still a strictly worse deal.


It's easier to pay for a physical product, especially one where you can employ the doctrine of first sale and reuse them in any way you choose.

With Artifact you couldn't even sell your deck without paying Valve again. Fuck. That. Card games are already expensive, you didn't need to make it worse.


Yeah, I think this is one of the biggest points: they were marketing to the wrong demographic. Dota players like to laugh at League players for having to buy heros, so even if a competitive deck is only $200 which is really good compared to other CCGs, that price is super high to a video game player steeped in the philosophy that "mtx should be cosmetic only, anything else is pay to win."


On the other hand, look at the article's point 7: the economic model was fundamentally flawed through oppressive transaction fees plus a conception of cards as both valuable (resale) and free (via card rewards).

Players don't see a game's economic model in its ideal state, they see the economic model as implemented.


I don't think the economic model is why Artifact failed. The reason Artifact failed is that it's not fun.


Well, I for one didn't want to pay $20 to get a game i might not like where I have to pay ~~$100ish to test-out a deck I might end up not liking.

Seriously, when compared to Hearthstone (biggest, well establish competitor) free to try, can grind the cards, side modes, single player 'adventure' expansions etc. Valve throws Artifact as competition, unpolished product that wants your money upfront.

Valve needs to unstuck their head from the rearend, cuz they are no longer beloved internet darling.


Now let's put a person talking on the phone and texting at the same time and have that person do the same exercise that AAA conducted..


tl;dr: Unicode codepoints don't have a 1-to-1 relationship with characters that are actually displayed. This has always been the case (due to zero-width characters, accent modifiers that go after another character, Hangul etc.) but has recently got complicated by the use of ZWJ (zero-width joiner) to make emojis out of combinations of other emojis, modifiers for skin colour, and variation selectors. There is also stuff like flag being made out of two characters, e.g. flag_D + flag_E = German flag.

Your language's length function is probably just returning the number of unicode codepoints in the string. You need to a function that computes the number of 'extended grapheme clusters' if you want to get actually displayed characters. And if that function is out of date, it might not handle ZWJ and variation selectors properly, and still give you a value of 2 instead of 1. Make sure your libraries are up to date.

Also, if you are writing a command line tool, you need to use a library to work out how many 'columns' a string will occupy for stuff like word wrapping, truncation etc. Chinese and Japanese characters take up two columns, many characters take up 0 columns, and all the above (emoji crap) can also affect the column count.

In short the Unicode standard has gotten pretty confusing and messy!


> Your language's length function is probably just returning the number of unicode codepoints in the string.

The article didn't say that!

"Number of Unicode code points" in a string is ambiguous, because surrogates and astral characters both are code points, so it's ambiguous if a surrogate pair counts as two code points or one. (It unambiguously counts as two UTF-16 code units and as one Unicode scalar value.)

The article presented four kinds of programming language-reported string lengths:

1. Length is number of UTF-8 code units. 2. Length is number of UTF-16 code units. 3. Length is number of UTF-32 code units, which is the same as the number of Unicode scalar values. 4. Length is number of extended grapheme clusters.


It’s a worthy mention that it’s mostly THC vapes. Rarely nicotine vapes alone.


This was fascinating, thanks. Made me think about why I used 99 as my max -- I think it's because back in the SNES days, all the RPGs used 99 as a limit.


Someone should do an anthropological study.

"Final Fantasy? The Enduring Influence of JRPGs on Web Development Practices."


I think I'm going to run 50 volts through all my usb cables when I get home.


Sounds like a great way to fry your lightning and usb-c cables as the former has a mfi chip, and the latter has a pull down resistor.


I guess the secure solution is to carry around your own X-Ray verified lightning-USB dongle and high voltage fry any dumb cable you find yourself needing.


Or always buy two and dissect one.


And why 50? That's so arbitrary. Why not 120? Or 240? Or 9?


(IANAEE) 120 and 240 are a bit more painful when mistakes happen. And 9 seems too low (normal USB voltage is 5, so 9 might be within safety margins).


It's probably just his DC power supply he has handy.

As far as 120/240 thing, if you have a component not meant for that kind of voltage, it might fail open, or it might fail short.

If it fails short, high amounts of current might be allowed to flow through other components which would carbonize so even more current would flow. And maybe catch fire.


Excellent points. Thanks!


"120 and 240 are a bit more painful when mistakes happen" ... aaah. That sounds like the voice of experience.

Man, I love the internet.


My phone charges at 9v over USB-C so I would imagine it would be just fine.


Is it really 50% though since more than one ball is falling through at a time? Wouldn't a steel ball hitting another steel ball affect it's possible path?


Notice how the drawn Gaussian doesn't follow the bottom row of binomial coefficients of the Pascal's triangle[1]. The model that assumes that each ball independently falls left or right exactly one unit is limited and doesn't actually describe many real world Galton boards.

[1] https://upload.wikimedia.org/wikipedia/commons/d/d2/GaltonBo...


if the distances between circles approaching another circle is more-or-less the width of the ball, the other balls will not affect it much.

+ The additional perturbations make the situation more random, rather than entirely based on the inconsistencies of the board design.


Seeing things for what they really are...isn’t that our greatest desire and our greatest fear? I love the voice in this fiction, and the astonishing fact that it is provided to the world in a newspaper. Speculative fiction is where truth can be approached safely. Keep it going.


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

Search: