« first day (2293 days earlier)      last day (2880 days later) » 

01:00
nah, implementing it and getting everything to run
user6438653
I've made a bunch of regexes and now I'm converting them to a for loop.
Learn how to handwrite parsers. Use a parser generator for real world stuff.
user6438653
Nien!
get the dragon book
eragon?
01:02
Not the dragon book, no.
user6438653
Dragon book?
user6438653
I just realised how easy this is...
user6438653
Some example code:
user6438653
gui = ('gui')

window > gui.window {
  () {
    .title = 'My window!'
  }
}

window.show()
01:03
Get Engineering a Compiler by Cooper and Torczon.
user6438653
Loop through each line, and each character.
user6438653
Then match the characters like a regex would.
user6438653
I don't read books. They are a waste of time imo.
Or.. Understanding and Writing Compilers by Richard Bornat.
@WATERYMEL0N good luck, lmao.
user6438653
Work it out along the way.
01:11
@WATERYMEL0N ignorance is bliss isn't it
user6438653
What?
You should try implementing aes too
user6438653
@Meredith Yip.
user6438653
Add what you liek.
Also when you finish writing the parser for your language
It's going to need a date library
01:14
timezones!
user6438653
Yip.
you should call it Yip
user6438653
yay timezones!
user6438653
@rlemon Haha
user6438653
Yip
user6438653
01:15
Why isn't there a lang called code?
why isn't there a language called words?
there is
But now they just call it c
Why isn't there a language called professional? Oh wait, there is, but now they call it jQuery
user6438653
@Meredith I though that's where c came from.
It's not
I was joking
user6438653
01:19
I sounds pretty true.
It's based on a language called B
user6438653
Hahahha
That's actually true
you can't name a language A or B because those are reserved for floppy disks
and you keep your source code on the disk
so
A -> ASM
B
C
user6438653
01:21
I know.....
user6438653
D!
it exists, it's not very good
There's A through Z
it was like proto-Go
Why is mongoose promise in bluebirdjs returning undefined in first case

    somePromise
    .then(anySchema.findOne({}).exec)
    .then(function(d){
         //d is undefined
    })

while

    return somePromise
    .then(function () {
        return anySchema.findOne({}).exec()
     })
    .then(function(d){
         //d is null
    })
01:21
We started spilling into greek letters too
@ankitbug94 Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
user6438653
Dammit
Haskell doesn't have any greek letters in its name
user6438653
Code it is.
01:23
it's a lambda
That's the Haskell logo
its the lambda logo
Shut up, Sean Spicer
like everything in haskell, it's different but exactly the same
or are they the same but different?
ASM -> FORTRAN -> ALGOL 58 -> ALGOL 60 -> CPL -> BCPL -> B -> C -> C++ -> C#
History of programming languages is weird
01:25
Lisp
Don't forget D
D is nice
user6438653
@littlepootis Gay......
user6438653
haha
Yes I'm happy
01:28
Nothing wrong with being gay
user6438653
I know. My dad says stuff like that.
Your dad calls you gay?
user6438653
@ndugger Yes. Even though I am not.
Sounds like a loving and supportive family
user6438653
01:29
Yeah... Nah....
user6438653
Long story.. Anyways...
user6438653
Dot, dot, dot!
aaaand now I want dippin dots
user6438653
Dippin what?
01:32
You reminded me of that song
That goes like.. dot dot dot dot dot dot dot dot dot dot dot dot
user6438653
Hahaha
I love dippin dots
user6438653
Since whn did google do this?
user6438653
user6438653
A yt vid in google images, I'm sure i would have clicked videos if i wanted to watch a vid.
01:34
You mean that fact that it doesn't exclude youtube from image results?
user6438653
Would anyone want to help make this new lang?
user6438653
@KendallFrey Yip.
user6438653
@Meredith Alright....
I don't know why google would intentionally block its own site from image search results
user6438653
01:35
What country do you live in?
user6438653
I'm in New Zealand, our google is un-filtered.
Canada, but that doesn't have anything to do with it
anyone know a lot about computers well why does this have 2 usb ports amazon.com/Hard-Drive-Connector-Powered-Cable/dp/B019PURSEQ/…
user6438653
What browser?
user6438653
@William Who knows.
01:37
@WATERYMEL0N you have been most helpful
thank you
user6438653
haha
@William So you can connect it to two devices
hahah helpfuler
at the same time?
user6438653
Yip.
@WATERYMEL0N That still doesn't have anything to do with it
user6438653
01:38
Okay, I don't know.
user6438653
Dammit, what should i call this new lang?
21
Q: Why Do Some USB Cables Have Two USB Connectors at the End?

JFWI've recently bought an external hard drive enclosure and it had arrived with an USB cable, with one USB connector on one side and two on the other. Why do some USB cables have two connectors while others do not?

genius although my computer doesn't have 2 next to each other so problem
get a normal adapter
01:40
like what?
user6438653
@KendallFrey Wat? Y dat.
y not
I'm not good at naming things
@William Get a usb extender
user6438653
Me niether, I mean I came up with code! So original...
Or a usb splitter
01:41
hahaah usb splitter great idea
would have to be powered
I think you'd blow up your computer
ideally
If you actually needed the extra connector
i will miss firewire
dude, just use usb
straight usb all the way across
like it's 2016
01:44
you can't daisy chain hard drives with usb
you have to use a usb splitter
but true
so what?
I use an ethernet to usb adapter to connect to the internet
the protocol was better and more efficient
user6438653
I need a short and memorable name, the purpose is for anythig, gui, servers, os's, websites.
@Meredith your joking
@WATERYMEL0N Zucchini
its for sale actually
01:45
@WATERYMEL0N use a mythical creature
dragons or unicorns are the best bet
@William Apparently they exist
user6438653
Okay.
user6438653
Oh no I searched mythical creatures now i'm on a nsa watchlist.
user6438653
01:47
I dunno.
user6438653
An Alicorn is a pegasus that shagged a unicorn.
pegasus is the name of a winged horse
that doesn't seem right
user6438653
An Alicord is a unicorn that can fly, unicorns are a type of horse.
user6438653
Also Unicorns actually exist.
01:51
those might be sheep
user6438653
A rhyno's scientific name is unicorn.
user6438653
Well one of them
user6438653
This one:
you are not ready to hear about narwhals
user6438653
01:54
@Meredith What?
user6438653
Unicorn whales.
user6438653
Univoid could be the lang's name.
user6438653
unvoid
user6438653
avoid lol
user6438653
If you look at the other room I'm in I got split chat.
02:13
simple GET request with params question:
I am sending a json through
ajaxGet('save?' + encodeURIComponent(JSON.stringify(obj)))
how do I receive it properly from the node.js server in order to save it to a file?
let query = JSON.parse(decodeURIComponent(req.query));
actually writes this in the file:
[object Object]
:/
You're writing query to a file?
yes
fs.writeFile
Serialize it to json first
how?
Dude
02:18
ok I'll google it. thank you, and I'll let you know :)
Is there any event that is like "on first input", such that it is emitted when you input the first time and no other time?
hello
figured out. I missed a param building the url string
Just have your listener remove itself
ajaxGet('save?' + encodeURIComponent(JSON.stringify(obj)))
becomes
ajaxGet('save?q=' + encodeURIComponent(JSON.stringify(obj)))
02:26
@AndrewLi addEventListener allows you to specify that in an extra parameter, I think
now I can send JSON object using GET method and write the file
Huh yeah you can do that
{ once: true}
Ok, thanks
There's just one problem. I'm using React :/
@AndrewLi first time you could set a variable
and each time check it
I could probably use refs and add a listener but I don't think that's really a good idea
02:38
Yeah that's state
Keep track of it yourself
Dunno. Let me try out a ref on my input.
Maybe I'm missing something or really out of it but what is wrong with JS Date Object? Try this and let me know what you guys get: new Date(Date.UTC(2999, 12, 31))
user406009
@10100111001 I get Thu Jan 30 3000 18:00:00 GMT-0600 (CST)
Leap seconds
user406009
@10100111001 What were you expecting? The main confusing thing I find about the Data object is that the month is 0 based.
user406009
0 is January.
user406009
03:13
And so 12 is also January (because it wraps around)
@10100111001 We've had a discussion on this
@FlyingGambit remember when we went crazy testing that?
So leap seconds?
It doesn't take those into account?
No lol
03:31
@10100111001 for more info, check out this post
4
Q: Why does Date accept negative values?

Flying GambitAs per MDN "Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC." Then why does it accept negative values ? Even if it did shouldn't negative value mean values before Jan 1, 1970 ? new Date('0000', '00', '-1'); // "1899-12-30T05:00:00.000Z" n...

04:04
So I get Jan 30, 3000 instead of Dec 31, 2999 how can I workaround this?
@10100111001 you're getting jan because you're passing in 12 as the month. js dates have the month 0 indexed, so december is 11
do new Date(Date.UTC(2999, 11, 31))
Lalaland told you this
@10100111001 Most computer systems and date libraries do not handle leap second at all. They just skip a second in the system clock. Another reason to use performance.now to profile instead of date.
@TrojanByAccident You know, the more I read my answer, the more I am tempted to use moment.js. I intended to highlight the confusing parts and it seems that I am doing a good job.
04:25
lol
can someone tell me what => does?
@TrojanByAccident You mean fat arrow function?
@Sheepy I guess?
@TrojanByAccident It's a quick way to define a function. That keep the this from the defining context.
@TrojanByAccident I gave up on JS date, it needs to be re-implemented with bug fixes
@Sheepy please explain
@FlyingGambit lol
@TrojanByAccident Thats an arrow function
lol
I will never understand
user406009
@Sheepy The chance of you hitting a leap second in a benchmark is really minimal though.
user406009
You have greater odds of being struck by lightning.
var happyTrojan = work.map((focus, practice, patience) => return{success: true});
@Lalaland The chances of getting struck by lightning is more than 90%
04:52
@Lalaland Leap second, yes. But sync with time server is much more frequent.
user6438653
Parser update: At the moment my parser can find, operators, names (variable names & function names), integers and floats.
user6438653
You people star anything shitty
user6438653
Yip.
06:11
Yeah, the quality of starred messages has had a sharp decline lately :/
15
used to be at least a few interresting or funny ones in there
user6438653
06:59
Yeah...
Hello all cool devs good morning
anyone working on React-native ?
Recently I started learning react-native..I have some issue
07:19
I'm also annoyed with the starred messages lately.
Hi All
0
Q: Inline svg as directive (Firefox issue)

Mr_GreenIn my project, I am using Inline svgs as follows: HTML <div style="display: none"> <svg xmlns="http://www.w3.org/2000/svg"> <symbol id="dropdown" viewBox="0 0 3.359 1.929"><path d="M1.68 1.929a.29.29 0 0 1-.204-.083L.085.484a.28.28 0 0 1 0-.401.293.293 0 0 1 .409 0L1.68 1.244 2.865.083a.2...

^ Any help?
user6438653
07:34
@KarelG Sorry.
user6438653
This room is depressing...
eh you don't have to apologize
it's those regulars 6~7h ago
user6438653
Ohh...
user6438653
I have starred 7 things........................
user6438653
There are only 9.......................
user6438653
07:39
Yay I have finally finished parsing operators.
Wow
just had an idiot math moment
I was trying to figure out why 223-- evaluated to 3
lmao
user6438653
Why?
user6438653
I have that often..
@WATERYMEL0N 223-- is the equivalent of 2-(2-3) in my syntax
user6438653
Ahh, right.
user6438653
07:41
I had one of these yesterday, say I have n. It can't be greater than 5, less than 10 but greater than 15, right?
err, correct?
user6438653
Bloody logical boolean stuff!
!!> 223--
user6438653
I had an AND instead of an OR, lol.
07:43
@Mr_Green "SyntaxError: invalid decrement operand"
Finished parsing math
user6438653
Are you making your own lang?
So I'm going to finish up writing the specs for now, and then push to my repo
@WATERYMEL0N yeah
user6438653
Me too.
user6438653
I've got a fair bit done today.
user6438653
07:44
I'll give ya my gist.
k
btw, anyone here know how to include javascript in a .hta application?
user6438653
@TrojanByAccident <script>?
user6438653
I used to use .hta's before I knew what a compiler was.
user6438653
I didn't know how to make a .exe file for so long...
07:46
I have no idea how to compile
user6438653
Me niether, and it doesn't help there aren't any docs.
And I've tried freezing python
but no applications work on my school laptop
@WATERYMEL0N how do you?
user6438653
Freezing python must be quite cold.
user6438653
@TrojanByAccident I used visual studio.
user6438653
07:48
c#'s compiler, csc.exe
Ah
now to learn c#...
user6438653
Don't! csc.exe dosn't help.
user6438653
I tried making a compiler using it. I didn't get very far...
!!> --2
@KarelG "SyntaxError: invalid decrement operand"
07:49
wut
user6438653
In my lang 2-- == 1
!!> let a = 2; a--;
@KarelG 2
user6438653
That's dumb.
eh cap doesn't accept these
user6438653
07:50
Oh, i know.
user6438653
!!> var a = 2; a--; a;
@WATERYMEL0N in my lang, 2-- == 2
user6438653
Oh yeah, that's right, i'm banned for no actual reason other thab time and place!
user6438653
@TrojanByAccident why?
those operators are increment ( = +1) or decrement (= -1) operators. It has either pre- or post- indices
user6438653
07:52
Yeah...
@WATERYMEL0N only one item on the stack, so it does -(-(2))
that reminds me of LISP
(- 3 2) = 1
user6438653
ohh....
user6438653
((2)-)- = 1;
07:54
@WATERYMEL0N how does that work?
08:08
@TrojanByAccident how does the program determine that it's 32 and not 3, 2 ?
And what if you use 321 ?
@KarelG It parses the code one character at a time
you will have problems with the unicode chars :)
@KarelG 321 is parsed as "3 2 1" and will be printed as "3\n2\n1"
08:29
@TrojanByAccident IIRC, you put in <script> tag like normal html.
@Sheepy yeah, I think it wasn't working 'cause I was doing <script type='text/javascript/>
but it's still doing something funky
user3119231
o/
@TrojanByAccident Try <script type="javascript"> The text part is a, um, modern addition. Relative to hta.
And of course your js better be very very backward compatible, given the age of hta...
user6438653
08:32
@TrojanByAccident Dunno.
@Sheepy meaning no let :/
user6438653
Parser now does:
user6438653
parse('a "a" 1 1.1 +')
[ { obj: 'a', line: 0, col: 0 },
  { str: 'a', line: 0, col: 2 },
  { num: '1', line: 0, col: 6 },
  { num: '1.1', line: 0, col: 8 },
  { opt: '+', line: 0, col: 12 } ]
@TrojanByAccident Oh, a lot less than let. Welcome to the good old days. :)
@Sheepy mind running through my code and removing things I can't use?
08:36
@TrojanByAccident Not really, because I can't be certain what can be used and what can't. It should be around 10 years since my last hta.
I'll try the IE's emulation. If it works on IE 5, you get a good go :)
user6438653
you can make an hta run on ie9, but higher than that is a no go as they stopped supporting it.
user6438653
The default is ie 5 or 6
@TrojanByAccident On the bright side, you can use ActiveX. Which let you do many, well, let's say wonderful things :D
user6438653
Shadows! ActiveX can do shadows!
I don't want wonderful things
I just want an interpreter application for my language
user6438653
@TrojanByAccident How do you parse brackets?
user6438653
() {} []
@WATERYMEL0N er, what do you mean?
user6438653
08:45
Does your lang not have them?
user6438653
Or sorry, I meant tokenize them.
user6438653
Your parser is in js isn't it?
user6438653
May I see the code? I'll show you mine if you show me yours, lol
08:47
you mean take (e.g.) run("{hello}") and parsing the item(s) inside the brackets?
@WATERYMEL0N the only thing it has rn is math
user6438653
Yip.
user6438653
rn is math!??!
user6438653
Mine can't run anything... yet..
user6438653
I have parse('stuff') then it returns the tokens.
user6438653
08:49
I don't mind I'll get it.
I think I can help
user6438653
I don't know how, but I read someone's c++ parser and I understood it...
user6438653
I'm sure I am autistic with A.D.D, haha, lol.
user6438653
@TrojanByAccident is afk, i am now singing a song...
user6438653
about @Trojan is afk
08:54
Try using input.match(/{*}/)
or /{*}/.exec(input), though I'm not sure how well that works
I can't get the second to work well
haven't tried the first
o/
how are you all doing today?
@GNi33 Bad. Chinese new year is coming, get more jobs than I can handle, and most family members are busy preparing for it which means I have even less time because they can't help with the baby. I considered jumping out of of the window so that I can broke my leg and stay in hospital. Freedom!

« first day (2293 days earlier)      last day (2880 days later) »