« first day (1991 days earlier)      last day (2846 days later) » 

12:00 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ my recommendation is to use node-printf
 
is that a module?
 
I'm cool with writing my own
 
you can also copy paste one from cheddar
@CᴏɴᴏʀO'Bʀɪᴇɴ ok
Suggestion: let it allow stuff like: format("%{namedarg}", {namedarg:4})
 
oh, okay
@Downgoat what's the best way to evaluate an escaped char? E.g., given a string "\<char>", return JS's string like that? I don't want to use eval for the obvious reasons
 
12:13 AM
I think JSON parse should work
 
oh, thanks
wait
 
?
 
f = s => JSON.parse(`"${s}"`)
f("\\a")
SyntaxError: JSON.parse: bad escaped character at line 1 column 3 of the JSON data
 
You need to add literal quotes
 
sorry, see edit
 
12:15 AM
try { return JSON.parse(JSON.stringify({fake: yourVariable})).fake } catch (){}
 
Put it in an array
@Quill how to make super inefficient code 101
 
@Quill that is rather fugly. I think I'll just look at the chars JS escapes
 
@CᴏɴᴏʀO'Bʀɪᴇɴ does array solution nor work?
 
nope, same error
 
(yourVar) => JSON.parse(`{"a":${yourVar}}`).a
 
12:17 AM
Oh because \a isn't a valid escape
 
yes.
But in JS "\a" => "a"
 
Oh then i think a find replace is your best bet
 
I don't think I should support "\v"
 
I'm making a programming language based off of the Lego WeDo language. For context, Lego WeDo is an educational robotic kit made for elementary school students, and it has a simple visual programming language. This language, however, has some interesting quirks that I think will make for an interesting language. For example, it doesn't allow for nested loops, but it allows for multithreading with programs able to call other programs.
 
@PhiNotPi will it be open source? :3
 
12:22 AM
@Downgoat I guess. I mean, it's not going to be able to interact with actual lego hardware anyways.
There's actually not much to it. I don't even think it will qualify as a programming language per the typical meta consensus.
 
@PhiNotPi ;_;
 
For example, there's only one modifiable variable in the original.
 
o_o
 
@PhiNotPi Is there no scratch memory in addition to the register?
 
12:30 AM
@quartata not that I'm aware of.
 
@Quill oh my god why
 
@PhiNotPi Well that stinks. You could do something like 2^x*3^y*5^z... I suppose but that is annoying af
 
@Quill Looks nice, but what's with the three weird dots in the upper left corner?
 
I don't know why they would decide to do it like that, but that's how the close window buttons look on Ubuntu
 
Ugh, Unity.
 
12:36 AM
I was intending to reinstall xfce (my old de) after my hard drive blew up last year but I got used to Unity. It's not so bad
 
That kerning.
 
oh dear
 
Ligatures?
 
hoy shit the kerning between the lowercase h and e
 
The fi ligature messes this one up. Not as badly though.
 
12:38 AM
CR project alert
 
@Dennis Who decided it'd be a good idea to have ligatures in a monospaced font? O_o
 
¯\_(ツ)_/¯
 
@Doorknob it looks much worse on windows
 
Everything does.
 
@Dennis Simon really likes BF
 
12:41 AM
@Quill I thought a Code Reviewer writing BF was an oxymoron
 
@Downgoat we manage pretty well: codereview.stackexchange.com/a/39252/62429
 
what should i add to cheddar? ideas pls
im working on adding all jelly builtins so you dont need to suggest that
oh enums
 
@Downgoat fix up the docs
 
D: what's wrong with the docs
 
they don't cover the new stuff
 
12:51 AM
@Quill @EᴀsᴛᴇʀʟʏIʀᴋ @CᴏɴᴏʀO'Bʀɪᴇɴ @MᴀʀsUʟᴛᴏʀ @DrGreenEggsandIronMan @anyoneelsewhoknowsnaythingaboutcheddar halp writing docs pls? :3
 
> Tips for writing docs in Cheddar
 
CMC pop-con: In shortest bytes write a program that outputs documentation for Cheddar in markdown
 
__import__('webbrowser').open('http://docs.cheddar.vihan.org/')
 
-1 invalid outputs in html
@Quill idk I've covered most of the new stuff
 
1:10 AM
I'd love to write docs for cheddar! But first I need you to write docs so I can learn it. :P
 
@DrGreenEggsandIronMan :|
idk i still need to write docs on basic operators like + - / * xor & | == != etc
 
I'll trade you for V docs. :P
 
ok sure
I know a couple V commands: i, À
 
Esc? A? $? W?
 
oh V has those too?
TIL
 
1:25 AM
I'm thinking that latin square compression might be interesting
 
cheddar> if true {
...     print "yes it's true"
... }
 
at first, you can simply remove numbers that can be deduced.
 
cheddar REPL is best repl
 
but then, if there's a square with 2 or 3 options, you don't want to waste bytes by storing an entire number when you could get away with one or two bytes
 
@Downgoat will do
later
 
1:28 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ :D
 
@Downgoat -1 not aligned with the prompt
 
how should I do taht then?
Idk if having like 7 dots is good idea
 
cheddar> if true {
     ...     print "yes it's true"
     ... }
 
oh ok good idea
 
@Downgoat V is a superset of vim, so yes.
 
1:30 AM
so d3aw is vaild V code?
 
awesome
@DrGreenEggsandIronMan how come 3wd0 isn't working?
 
@Downgoat You mean d3awesome.
 
@Downgoat because 0 is going to be used for math functions down the road. You can use bar | instead.
Actually, 0 should be working right now. That's technically a bug.
I know why it's doing that though.
Once I migrate to vimscript, that'll be fixed.
 
on this computer with file extensions not shown, .gitignore shows up with no name lol
 
1:44 AM
It's like a two line fix, but I don't think it's worth it since I'll end up deleting them soon anyway.
 
@EᴀsᴛᴇʀʟʏIʀᴋ idk if it was you who suggested but I couldn't get shift+enter to work in Cheddar REPL, but now if you type like: if 1 == 1 { it will do ... and you can type the next line.
 
Jun 25 at 1:59, by Quill
you need shift enter for multiple line blocks
 
I have another idea, doing:
var @: mystring = "test"
will strict type the string but implicitly
 
2:02 AM
why not var@ mystring = "test"?
easier to parse
@Quill how do you suggest formatting multi line conditionals in JS?
 
ok
@CᴏɴᴏʀO'Bʀɪᴇɴ I usually do:
 
@CᴏɴᴏʀO'Bʀɪᴇɴ code example?
 
const escape = (t) =>
    t === "n" ? "\n"
    : t === "t" ? "\t"
    : t === "z" ? "\u200B"
    : t;
 
@CᴏɴᴏʀO'Bʀɪᴇɴ oh, for those I do:
const escape = (t) => t === "n" ? "\n"
    : t === "t" ? "\t"
    : t === "z" ? "\u200B"
    : t;
 
In my option, nestled ternaries are new blocks, so you should indent each:
const escape = (t) =>
    t === "n"
        ? "\n"
        : t === "t"
            ? "\t"
            : t === "z"
                ? "\u200B"
                : t;
 
2:09 AM
I see
 
but this code doesn't need a ternary
 
const escape = (t) => {
    switch(t){
        case "n": return "\n"
        case "t": return "\t"
        case "z": return "\u200B"
        default:  return "\t"
    }
}
 
But that would require brackets, and is unnecessary when you can have a lambda without them.
 
^
unless you're using Cheddar's switch lambdas :D
 
oh i should implement those now
 
did you get (op) working?
 
oh shit i forgot >_>
 
do that first please :3
 
im working on auto-deploying right now but feel free to bug me about it in a bit
 
2:13 AM
k
@Quill also, you forgot break
 
no need to break when you return everytime
 
true, my mistake
 
it's generally better to avoid the confusion of missing breaks and just use them consistently, but that's a small code block
 
@Quill switch statements are discouraged in JS tho
you should use hashmap instead
hashmap >>> map
 
2:19 AM
> discouraged
how so?
 
because hashmaps do everything better so engines optimize better for hashmaps
 
switches are generally discourages in all OOP
 
not really
switches are discouraged by people like you that like hashmaps
 
I think it's just that the map-crazy goat discourages it
 
2:20 AM
well if you're writing OOP then use hashmap. if you're writing C for some toaster than use switch
 
switches aren't deprecated, or suggested against in the popular JS style guides or use guides
 
> Using switch is hard to read and the data is mixed with the logic
 
do i need more links?
 
they're all blog posts by people who like other methods
 
2:22 AM
His code looks horrible ^^^
 
Switches are marginally different than using objects
They perform with very little difference
and switches are generally a language agnostic syntax
 
switches in JS are for people still emotionally attached to python
 
That makes no sense
 
@charredgrass python doesn't have switch
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I know but the syntax looks so pythony
 
2:24 AM
wat
 
not really....
 
case "x":
    y=1;
 
something:
    expression
 
that's not js
I just hate seeing that in my JS code
 
that's C style syntax from waaay before python
 
2:24 AM
^
 
I know
 
main: for(let x = 0; x < 5; x++){
 
Dennis Ritchie invented the C programming language. Broadly speaking, C-family languages are those that use C-like block syntax (including curly braces to begin and end the block). The family spreads out over several programming paradigms, including procedural programming, object-oriented programming, functional programming, and generic programming, as well as having both native code and virtual machine runtime environments. == ReferencesEdit... ==
No Python there.
 
oh my god the upside down smiley emoji takes up 4 whole bytes
 
@Quill how should I escape something in a string? E.g., if I'm given a string in a function $[]], and I want to escape the first ], does it make sense to have $[\\]] be the input?
 
2:26 AM
not using that...
 
everyone needs to set the "git ohshit" command to:
git commit --amend -a -C HEAD && git push -f
 
@CᴏɴᴏʀO'Bʀɪᴇɴ no idea
 
okay, cool. I'll just have it be ^
 
@CᴏɴᴏʀO'Bʀɪᴇɴ oh my god that's beautiful
 
2:27 AM
thank you :)
 
I'm writing a more JS-oriented one for fun
 
like
a JS derivative
basically just replacing common things with emoji
 
How would I break a cached folder on travis?
 
2:29 AM
I was doing a JS-derivative-like-thing a while ago, it was pretty cool
I never actually published that repo
 
Found using the D8_4 symmetry option
 
@Quill that's beautiful
 
_format("Items: %[, ]!", "World", "Thing")
> "Items: World, Thing!"
Ugly, not ugly?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ i dont get the syntax ._.
 
%[stuff] joins the format items by stuff
 
2:33 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ looks alright
 
ugh, I wish I had enough money to pay for Mathematica
 
@charredgrass there's an online free version
 
I know, but I know that I'll like the language too much and starve myself in order to keep using it :P
 
or you can install the raspberry pi OS in a VM
 
2:35 AM
Alright, given that ^ is the escape char in this scenario, please give me input to _format that could break it. I think you guys could do that ;)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ idk doesnt seem very useful
 
@Downgoat Oh well. I made the parser, so it's going in.
actually, I do have an instance where I could've used it:
 
IMO, there's not much need for printf when we have templating strings
 
@Quill ....oh.
 
C and other languages with printf need it cause they can't afford pretty syntax
 
2:39 AM
oh shit
i forgot to template string cheddar
 
That said, if you can make something awesome, and it looks like you have, then there's no reason not to publish it to npm
 
@Quill wat of course there is
Printf: IO.printf("%30d", a) formatting: print "#{(String::a).lpad(" ", 30)}"
 
Hey, how do you suggest I handle cases like %012, where I want (%0)12?
 
%{0}
 
In addition to, or replacing %N?
 
2:51 AM
In addition to
 
i suggest looking at bash string formatting and implement some of its features, which are pretty cool
 
Should it be _format(string, [things]) or _format(string, ...things)?
 
The latter iiuc
 
cool
what is iiuc?
understand?
 
2:56 AM
Y
SrY typing lzy
 
For anyone else who doesn't get it: IIUC = If I Understand Correctly.
 
> International Islamic University Chittagong
 
@El'endiaStarman thankyou for clarifying. I'm glad someone understands me.
@CᴏɴᴏʀO'Bʀɪᴇɴ does the ... mean "variable number of arguments" or literally ...?
 
@DrGreenEggsandIronMan variable
 
3:01 AM
Okay, good.
 
I need JS help. I want to set the innerHTML of a div to a certain string. But in the process, some elements are removed without any explanation. A minimal example: This is the code. This is the confusing result. When written to the console, the string is what I want, but when written to the HTML, it's altered.
 
Lol, there's a steam game with a -2% discount. If anything, that makes me want to buy it less.
 
@mınxomaτ do it dynamically, that should solve it
 
What does that mean?
 
var el = document.createElement("embed");
el.a = "";
document.getElementById("target").appendChild(el);
G'night now!
 
3:08 AM
nvm
@CᴏɴᴏʀO'Bʀɪᴇɴ That's actually worse. Now it completely ignores the property and just sets "<embed>"
 
Well, it's not a defined property of html, so it won't be set.
 
@mınxomaτ embed isn't a element that closes
and a has no value so ='' is redundant
 
It should still be there when you retrieve it, or use the original object
 
not really
 
I submitted my first package to the AUR! \o/
4
 
3:17 AM
Nice!
 
3:38 AM
That moment when you finish a new web thingy and you need to write a decent UI. Ugh...
 
3:55 AM
just got a +10 rep notification, tfw it's from StackOverflow and not PPCG
 
4:07 AM
Tfw ;-;
 
@Doorknob Aussie unicycle radio?
 
4:27 AM
That moment when you try to do something in Excel, but only know how to do it with an SQL table
 
@Dennis ah ok
@charredgrass :|
excel is easier than sql imo tho
 
DELETE * FROM status WHERE status="paused"
would be so easy
It definitely is way easier than SQL
 
holy shit travis is taking forever
 
LOL
 
> ACTIVE GOLF DESIGNS, FLATTERING FIT & PERFORMANCE FABRICS SPEAK TO THE CORE GOLFER SEEKING A MINIMALIST & MODERN LOOK
I read "CORE GOLFER" as "CODE GOLFER" :|
3
 
4:35 AM
@Downgoat where's that
 
I don't see it
 
huh, must of been a client side bug
refereshing fixed
> fatal: empty ident name (for <travis@testing-worker-linux-docker-9ea21166-3405-linux-6.prod.travis-ci.org>) not allowed
git y u do dis ;_;
anyone here familiar with C++ node bindings?
@CᴏɴᴏʀO'Bʀɪᴇɴ you there?
Can anyone help me with this:
git config --global user.name "Travis CI"
git config --global user.email $COMMIT_AUTHOR_EMAIL
for some reason that errors
idk why it's dumb
 
\o/ I'm getting top user swag from ELL!
 
@DrGreenEggsandIronMan \o/ \o/ \o/ cool!
but I think there swag is designed for humans, not Ham Jams :(
 
4:47 AM
> Implying you can't be a human AND a ham jam.
Does every site do swag when it graduates?
 
yeah
but swag comes after the swag delays which come after the design which comes after the design delays
 
Cool. Is it always top 72?
 
yeah, always top 2 pages of users
i really hope they give goat swag
3 mins ago, by Downgoat
git config --global user.name "Travis CI"
git config --global user.email $COMMIT_AUTHOR_EMAIL
pls i beg fer halp
 
Awesome. Getting swag on a site I don't care about as much makes me excited for ppcg swag.
 
@DrGreenEggsandIronMan yeah
here's the list of users getting PPCG swag: gist.github.com/The-Quill/e5795bf48d0fc29bca4b
 
4:51 AM
> Downgoat
\o/
 
Wait, it only counts the beta phase?
 
It's top 72 users when the site graduates
 
that said, if you're on the top 72 users list now, you could ask really nicely if they have any left and hope for the best
 
That actually makes me really sad.... I'm a top user too...
 
4:54 AM
speaking of top users, I hit 400 rep on ppcg yesterday
 
Nice! What from?
 
@Quill \o/
 
I wasn't very active until February this year.
 
I'm #139, does that count for anything?
 
like my grand total is 400 now, not that I got 400 in one day <_<
 
4:55 AM
@DrGreenEggsandIronMan change your name to helka homba jr to convince them :P
@Quill why is your chat parent LL?
 
@Downgoat because I'm a mod on LL
 
Or I need to step up my game. Let's see if I can make it to page #1 before swag happens.
 
@DrGreenEggsandIronMan ok ill help you by "reccomending" challenges that cheddar will be good at
how about rotate a string given how many degrees
so given:
ab
cd
and 180, output:
dc
ba
 
You say that as a joke, but if you've got challenge ideas you don't feel like posting, I'll happily make them.
 
no im serious that was a legitimate suggestion
 
4:59 AM
I should make more challenges too
 
@Downgoat relevant:
14
Q: Turn a string into a windmill

Dr Green Eggs and Iron ManThe code on this site is rapidly being depleted. We need to invest in renewable strings. So you must write a program that takes a string and converts it into a windmill. The Challenge Let's take a simple wind-mill string as an example. Take the string abc. The pivot is the center character, in ...

 
wat you already did it ;_;
chedr doesn't support 45 degrees
 
do we have a brexit / voting challenge?
 
How would that even work?
 
@Quill i already have a 6 byte cheddar solution: ->"NO"
 
5:02 AM
@DrGreenEggsandIronMan idk read an array of "Leave" or "Remain" and count them or something
 
a->a.count("Leave")/a.len>.5
 
yeah, I need something more solid
 
@DrGreenEggsandIronMan okay i have a legitimate challenge idea
Given a CFG eliminate all left recursion
 
Cfg?
Context free grammar?
 
yeah
 
5:08 AM
I don't know how many emails I've got in my inbox with the phrase "left recursion"
 
I'm so bad at those terms, what is left recursion?
 
left execution of expressions
(((3+2)*2)+3)
 
@DrGreenEggsandIronMan When you have something like:
 
wat
 
A -> Aα
you are trying to repeat α but instead with normal descent parsers it'll see A in the derivation and go to A and then see A and then go to A and etc.
 
5:13 AM
So essentially a dictionary where certain keys map to values that start with the key?
Hey, on the bright side, I'll probably get vim swag, once if it ever graduates.
 
vim swag sounds cool
 
5:29 AM

Software Engineer - Full Stack Web Engineer

Wikimedia Foundation

Summary We’re looking for a full stack web engineer who can make 450 million pages a day load smoothly, and do so…

Posted on Stack Overflow Careers on May 9, 2016

Wikimedia are hiring
@Downgoat you might be able to answer this: stackoverflow.com/q/38320610/3296811
 
@downgoat you called?
 
5:46 AM
@Quill done:
0
A: Why do I have to put async keyword to functions which have await keywords?

DowngoatWell this is because of the synchronous nature of JavaScript. If you wanted a function to run an asynchronous command synchronously, it would block up the entire program and this is highly undesirable, bad if it's client side, horrible if it's server-side. For this reason async functions exist. T...

@CᴏɴᴏʀO'Bʀɪᴇɴ yeah, are you still there?
My question was what should the (+) literal be called?
 
Function literal? Functionized operator? Operator expression? (make sure it works for things like (and))
 
@CᴏɴᴏʀO'Bʀɪᴇɴ function literal would be confused with -> blah Perhaps functionized op though that sounds a bit unprofessional :P
+1 to this entire chatroom for this still being on the starboard
 
@Downgoat nice work
 
how about "verb" :p
 
@Quill :D
@CᴏɴᴏʀO'Bʀɪᴇɴ why the ":p"?
 
5:54 AM
because verb = operator
 
oh
wat I got 3 upvotes but 45 rep o_o
 
oh
okay well tomorrow I'll work of functionized ops and Cheesecloth but for now I really need to catch up on sleep. I've been up past midnight for past week working on cheese >_> bai
 
bai. imma sleep too
 
6:28 AM
@Downgoat ???
@Downgoat because I need to access npm programatically
@Downgoat (+) = operator in prefix form?
 
6:59 AM
0
Q: Return the `n`th digit of the sequence of aliquot series

Sir Biden XVIIReturn the nth digit of the sequence of aliquot series 0. DEFINITIONS A sequence is a list of numbers. A series is the sum of a list of numbers. The set of natural numbers contains all "non-negative integers greater than zero". A divisor (in this context) of a natural number j is a natural num...

 

« first day (1991 days earlier)      last day (2846 days later) »