« first day (1944 days earlier)      last day (2891 days later) » 

5:03 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ do you know if there is a more memory-efficient way to do:
import CheddarLexer from '../tok/lex';
export default class CheddarExplicitEnd extends CheddarLexer { }
oh yes, decorators
@MarsUltor do you know what CheddarFunctionToken is?
 
huh apparently sorting with a random function makes for biased shuffing
The Fisher–Yates shuffle is an algorithm for generating a random permutation of a finite set—in plain terms, the algorithm shuffles the set. The algorithm effectively puts all the elements into a hat; it continually determines the next element by randomly drawing an element from the hat until no elements remain. The algorithm produces an unbiased permutation: every permutation is equally likely. The modern version of the algorithm is efficient: it takes time proportional to the number of items being shuffled and shuffles them in place. The Fisher–Yates shuffle is named after Ronald Fisher and Frank...
 
5:20 AM
@Downgoat what's the point of cheddar btw?
or rather the goal
 
@orlp the real reason i made it was I wanted to make a programming language for fun, and to also have a language that does everything I want it to with syntax that I like
:D someone tweeted Upgoat, Downgoat:
Mathematica has a built-in goat recognizer http://codegolf.stackexchange.com/a/71680 (Upgoat or Downgoat?)
 
@Downgoat why is the goat in your profile picture down?
 
@orlp because I'm downgoat?
 
I saw that edit
tell me about the accident
 
5:37 AM
@orlp it is very horrible... It was when my kind crash landed on earth...
though because we're upsidedown it's not really "crashing"
May 18 at 3:29, by Alex A.
@Cyoce When his goatship crash landed on our goatless planet millenia ago, he roamed in search of others of his kind. At first he eschewed the humans, deeming them inferior beings. But eventually out of necessity he came to join them in brotherhood and ultimately embrace their culture.
I'm not sure how Alex knows all of this though :/
 
how do you walk?
 
> February 11, 2016
 
5:56 AM
@Downgoat Magpies saw everything, magpies are everywhere...
@orlp Snakes can walk eithout legs, why couldn't goats do the same?
 
@orlp They walk on the ceiling
Also occasionally the "right way up", but it's very disorienting for them, so they can't do it for very long
 
@MarsUltor wait, those flat-earthers were right?
the stars are painted on a high ceiling?
 
@orlp I meant on Earth, IDK about space downgoats
@orlp Downgoat would definitely feel right at home in Australia
 
hrm
 
Downgoat probably finds it annoying stuck in cars/other vehicles and undercover areas
 
6:07 AM
space downgoats
 
Anonymous
@Downgoat More importantly, the favicon is screwed up on Twitter
 
@Mego 0/10 brython
 
Anonymous
@MarsUltor Brython is 10000% easier to use for me than JavaScript
 
Anonymous
:29910849 Skulpt is very incomplete
 
Anonymous
6:19 AM
Do your research before you criticize the choices I made after doing mine :)
 
0/10 Python in browser
 
Anonymous
More browser languages = better
 
the only acceptable use is probably pypy.js, and only for number computation
 
Anonymous
Having more options is never a bad thing
 
Flash/Java count, right?
Hmm, are there any live transpilers other than Brython/Coffeescript/Typescript
 
Anonymous
6:27 AM
Flash barely counts anymore. It's an antiquated, unsafe technology that I'd love to see gone.
 
@Mego But it still counts
 
Anonymous
And Java is basically already gone, thanks to Chrome giving it the boot, and Firefox is gearing up to do the same
 
Anonymous
I mean yeah you can do stuff in Flash if you want. You can do stuff in Silverlight if you want, too.
 
Anonymous
But there are better options.
 
Then the only languages supported are Python, JS, and variants of JS?
 
Anonymous
6:29 AM
Flash, Silverlight, Python, JS, JS derivatives/libraries, and anything you're willing to install an extension/plugin for :P
 
Anonymous
We're in an era where you use the internet for basically everything on a computer. Browsers are more important than ever. It's time that they start supporting more programming languages.
 
So
All the extension has to do is link the interpreter with the browser?
@Mego Not basically everything
We do use it all the time, though
 
6:55 AM
@Mego I have a friend, who programs in flash, and still says it's the best language ever
 
Anonymous
@Bálint You need better friends :P
 
@Mego I know
@Mego The other "programmer", I know can't actually program in any languages, but in unity's version of C# and thinks he's a programmer
@Mego The funny thing, that the flash programmer once downloaded Chromium, and he first said it's a very good browser, and it's really fast, then I told him, that chromium doesn't support flash, and he immedialitely said it's the worst browser ever. :P
I don't know why I want flash to die so quickly, to be honest, I may only want to see those crappy flash sites die.
 
Anonymous
7:30 AM
Flash has glaring security issues that only increase with every daily (at least, it feels daily) update
 
@Mego Flash: security < speed, JavaScript: security > speed
(Flash isn't fast though)
 
Anonymous
JavaScript: security > speed > features that other languages have had for years
 
Anonymous
(like async and await)
 
@Mego It started as a scripting langauge, those were unnecessary
 
Anonymous
And above all else, maintaining its frail grasp on its monopoly of client-side browser programming languages
 
7:35 AM
Browsers make sure you can't touch anything outside the browser with javascript, flash don't
 
Anonymous
I want to eventually create a browser-safe version of Python (that's not written in JS)
 
How?
With what?
 
Anonymous
Take Python, trim down the standard library to remove the unsafe stuff (almost all file I/O, basically the entire os module, etc.)
 
Anonymous
And then figure out how to safely do imports
 
But with wich language do you want to make the compiler?
 
Anonymous
7:41 AM
You mean the interpreter?
 
Yeah
 
Anonymous
C - it'll just be a modification of CPython
 
But then how do you run it in a browser? Sorry for the possibly dumb questions, I'm not an expert in this topic
 
@Bálint probably emscripten
 
@Mego ?
Brython doesn't do that?
@Mego Well, JS/node doesn't even have imports yet
 
7:49 AM
Can you guys do me a favor, go to this link: jsfiddle.net/nk5k4j42/2 and tell me if it can run, and wich browser you use and what version of it
 
@Mego frail?
@Bálint link?
 
@MarsUltor Missclicked
I mostly care about firefox, chrome and safari
 
@NathanMerrill But precedence is trivial using a shunting yard
 
Anybody?
 
8:15 AM
Hello
 
@zyabin101 Can you try out the link I posted above?
 
@Bálint Works on Mobile Chrome 50.0 on Android 4.4.2.
 
8:57 AM
Finally had my coffee for today.
Getting to PC now.
 
9:23 AM
@Bálint Can run but shows dark terrain on Firefox 46.0.1 on Windows Vista.
 
9:34 AM
@zyabin101 Then try to run it again, it's random
 
@Bálint Running on jsfiddle.net/nk5k4j42/2/embedded/result, shows dark.
Running on jsfiddle.net/nk5k4j42/2, shows normal.
Strange...
On Mobile Chrome 50.0 on Android 4.4.2, it's the opposite too.
 
@zyabin101 No, it's because it's random
 
Ah.
 
Deeper parts are dark, so you pretty much got one of those
@zyabin101 Wait, you have windowd vista
?
 
9:49 AM
@Bálint Yes.
 
ಠ_ಠ
 
ಠ_ಠ
It's pretty much my last system I have an install disk for.
 
Windows 10 is free
@zyabin101 What's the second last system disk you have?
 
@Bálint It is for legit Windows 7 or 8(.1)? users.
I can't download it.
@Bálint None.
 
10:09 AM
Git just detected me "copying" the entire file lib/goodbye_translated.rb into lib/goodbye_translated/translator.rb with a "few" changes, with 52% confidence.
Git is strange.
 
@Mego A client-side version? It may be hard because you'd need to re-write pretty much everything
 
Guys, I just found this in the Scouting room.
1
Cannabis

Proposed Q&A site for the emerging Cannabis industry, medical users and growers.

Currently in definition.

@BaldBantha ^
 
hello
^ is interesting, check it out
 
10:24 AM
hello
zyabin101@avista MINGW32 /C/Sites/goodbye_translated (master)
$ mkdir bin

zyabin101@avista MINGW32 /C/Sites/goodbye_translated (master)
$ touch bin/goodbye_translated

zyabin101@avista MINGW32 /C/Sites/goodbye_translated (master)
$ chmod a+x bin/goodbye_translated

zyabin101@avista MINGW32 /C/Sites/goodbye_translated (master)
$ ls -l bin/goodbye_translated
-rw-r--r-- 1 zyabin101 197121 0 may 26 14:27 bin/goodbye_translated

zyabin101@avista MINGW32 /C/Sites/goodbye_translated (master)
$ # <disapproval face>
 
10:39 AM
@zyabin101 I wanted to submit a site idea called "that dark place" where you can ask strange questions, but it didn't got any attention.
 
How to upgrade to Ubuntu 16.04 LTS:
1. Run sudo do-release-upgrade -d.
 
2. Bang your head in front of keyboard.
3. Break the keyboard.
4. Buy new keyboard.
Silently weep.
 
2. Have your system hang halfway through. (This actually happened)
3. Try rebooting.
 
@Bálint Called reddit.
 
4. Realize that Ubuntu is completely broken.
5. Reboot into Windows 10.
 
10:42 AM
5. Switch to OS X or Mint.
 
Silently weep.
 
6. EAT AVOCAD
 
@EᴀsᴛᴇʀʟʏIʀᴋ 6. JUIC AVOCAD
 
6. Mess around on internet, looking for answers.
 
7.: Juic avocad
ninja'd
 
10:43 AM
7. Reboot into live 14.04.2 LTS live CD.
 
@LegionMammal978 I suggest Ask Ubuntu
 
8. chroot into /dev/sda5.
9. ???
 
You can ask a question yourself :)
 
10. Reboot into Ubuntu.
11. Fix the locale settings.
 
10:43 AM
BTW, why are the names of the ununtu and apple SE "ask ubuntu" and "ask different"?
 
did askubuntu used to have that topbar, or is that me with some userscript
 
@Bálint Ask Ubuntu is for asking Ubuntu questions.
 
@Bálint apple's motto has been "be different" for a time now.
 
0
A: Sandbox for Proposed Challenges

ZgarbSilhouettes of trees code-golf grid I have a bunch of old and grainy black-and-white images. Some of them are silhouettes of trees, some are not – your task is to classify them for me. Input and output Your input is a rectangular 2D array of bits A, given in any convenient format. It will n...

 
and ubuntu is ^^^
 
10:44 AM
12. sudo dpkg --remove --force-remove-reinstreq gnome-screenshot; it was broken by the crash.
 
Ask Different is a parody on Apple's motto "Think Different".
 
13. Continue with sudo apt-get upgrade.
14. ?????
15. Profit!
 
seriously, is the topbar on askubuntu new?
 
At least it works now ;)
 
10:45 AM
dammit I was going to say that first...
 
@EᴀsᴛᴇʀʟʏIʀᴋ I see it without any userscripts
 
cool
and ask.ubuntu.com is a redirect to askubuntu.com
 
Am I the only one, who never ever entered to ask ubuntu and ask different?
 
You all speak about those site's design while I don't even know, what color they are mainly
 
10:48 AM
orange and white for ubuntu and apple
@Bálint askubuntu is kinda special, it's really really big
 
As a quick summary:

How to ---upgrade--- REALISTICALLY upgrade to Ubuntu 16.04 LTS:
1. Run `sudo do-release-upgrade -d`.
2. Have your system hang halfway through.
3. Try rebooting.
4. Realize that Ubuntu is completely broken.
5. Reboot into Windows 10.
6. Mess around on internet, looking for answers.
7. Reboot into live 14.04.2 LTS live CD.
8. `chroot` into `/dev/sda5`.
9. ???
10. Reboot into Ubuntu.
11. Fix the locale settings.
12. `sudo dpkg --remove --force-remove-reinstreq gnome-screenshot`; it was broken by the crash.
 
big enough that it gets it's own domain.
We are just codegolf.stackexchange.com, askubuntu is askubuntu.com
 
What keeps getting me about 16.04 is a slight but noticeable UI change
 
I made a goodbye_translated executable! :D
 
@LegionMammal978 what is it?
 
11:02 AM
The gem is not uploaded to RubyGems, to get the executable, clone the goodbye_translated repo, gem build goodbye_translated.gemspec in the resulting folder, gem install ./goodbye_translated-0.2.0.gem then enjoy the goodbye_translated executable.
It takes an infinite number of arguments.
The first argument is the language, the rest are the people to say goodbye to.
 
Chat mini-challenge: implement the set theoretic definition of the natural numbers (starting from 0).

You will be given a non-negative integer, and you should return the set-theoretic notation of it.

0 is defined as {} (the empty set), and n+1 = n ∪ {n}.

Therefore, 1 = 0 ∪ {0} = {} ∪ {{}} = {{}}.

2 = 1 ∪ {1} = {{}} ∪ {{{}}} = {{},{{}}}
You are allowed to use arrays or strings to represent the nested sets.
 
user image
4
 
@orlp It holds the door at least?
 
@Katenkyo edit away pls
 
@orlp naming this site is forbidden? Oo
 
11:12 AM
no
the spoiler
 
@orlp oh x)
 
@EᴀsᴛᴇʀʟʏIʀᴋ arqade got his own domain too
 
no?
oh, yeah. arqade.com does redirect.
 
@LeakyNun is the comma needed?
 
but askubuntu has to be hosted somewhere else, it's too big otherwise.
@LeakyNun @CᴏɴᴏʀO'Bʀɪᴇɴ set theory.
 
11:16 AM
@MarsUltor I guess not, if you're taking the string approach?
Reference Pyth program, 7 bytes: u+G]GQY
yes, which is {0,1,2}
Reference string approach without commas u%"{%s{%s}}"*2]PtGQ"{}"
 
Python
S=lambda n:n*[1]and[S(n-1)]+S(n-1)
 
ES6, 49 bytes: g=n=>n?`${g(n-1)}{${g(n-1)}}`:'';f=n=>`{${g(n)}}`
ES6, 47 bytes g=n=>n?`${g(--n)}{${g(n)}}`:'';f=n=>`{${g(n)}}`
 
@orlp I appreciate the use of S
 
@LeakyNun no appreciation for n*[1]and?
 
well... that's a skill every python golfer knows
not the n*[1]
 
11:26 AM
Array.prototype.toString = function() {return`[${this.join(', ')}]`}
 
that i appreciate
 
ES6, 31 bytes: f=n=>n?f(--n).concat([f(n)]):[]
 
@LeakyNun that's the part I meant
S=lambda n:n*[1]and[S(n-1)]+S(n-1)
S=lambda n:n and[S(n-1)]+S(n-1)or[]
saves a whole byte!
 
@LeakyNun what does G]G do?
 
i appreciate
@MarsUltor G is a nilad. +G]G means G + [G]
 
11:29 AM
@orlp Is it possible to save a half byte?
 
] is a monad meaning wrap
 
@LeakyNun similar to the jsfuck definition of it
 
@LeakyNun it's a monad meaning the singleton list
 
@EᴀsᴛᴇʀʟʏIʀᴋ How?
 
@EᴀsᴛᴇʀʟʏIʀᴋ Well, isn't the jsfuck definition 1+1+1+...+1?
 
11:34 AM
You build every number from other numbers.
@LeakyNun not always?
 
> ] <any> [A].
 
jsfuck has no 1
 
It's wrap
 
@orlp wrap is Jelly language
 
@MarsUltor that's the singleton list :P
a list with one element
 
11:34 AM
But normal people say wrap
 
oh it was jelly
 
I think
 
haha
] is also that in Pyth
 
@EᴀsᴛᴇʀʟʏIʀᴋ +!![] is 1
 
oh wait it was Pyth
@MarsUltor never heard that in a Python contest
 
11:35 AM
@LeakyNun yeah, but in the sense that you have to build every number from the base units.
 
sure
 
My bad, apparently it's just Jelly/Rails
 
extra knowledge: in the set definition, < (less than) is replaced by subset
 
> is superset then
 
sure
(I forgot if this term exists)
 
11:37 AM
Are there set arithmetic operators?
 
@MarsUltor All are built recursively
n+(k+1) = (n+k)+1
n+3 = (n+2)+1 = ((n+1)+1)+1
 
What about minus?
 
n*(k+1) = (n*k)+n
Looks like minus is inverse of plus
 
mathematicians will always amaze me when I see things like the set theory
 
s/ian//
 
11:47 AM
@EᴀsᴛᴇʀʟʏIʀᴋ Just small things, like button layout, desktop image shade, etc.
 
@LegionMammal978 Layout?
 
cookies for whomever does my challenge in J
 
in Mos Eisley, 24 secs ago, by Eᴀsᴛᴇʀʟʏ Iʀᴋ
user image
 
@LegionMammal978 How did the layout change?
Ubuntu Software's layout changed a lot, is that what you mean?
 
11:55 AM
 
@LeakyNun why so long
 
because I'm poor at Jelly
 
git good
 
@orlp 9 bytes: 0R;W$⁸¡ŒṘ
 

« first day (1944 days earlier)      last day (2891 days later) »