« first day (2250 days earlier)      last day (2712 days later) » 

6:04 AM
God
Fucking
Damnit and I can't just dot his easily because I CAN'T SEE A TYPE DECLARATION DECLARED LATER.
Fuck this bullshit language.
At least with C++ I could forward-declare a fuckin' pointer.
RHAWJDhawdh
 
@jaggedSpire a lot of the complexity comes from trying to cleanly handle non-latin numbers correctly. Turns out language is hard.
 
I wish I could help
 
@ThePhD what's the other?
 
@MooingDuck numbers? not characters?
 
@jaggedSpire there are 二 of us talking right now.
@jaggedSpire it's not a character encoding issue, it's the actual characters themselves
 
6:11 AM
@MooingDuck indeed there are, though I always thought of that as the japanese equivalent of typing out "two": a formal way of writing the number
is it more of a shorthand?
 
....
Wait a fucking second.
 
@ThePhD require the destructor to be passed in along with the constructor
 
let the LEXER solve this problem for me.
I can just
My problem is that I want to group A.B.C.D.E together
And have that be separately recognized from ( expr ).G.H
The LEXER can smash together identifier DOT + easy-peasy
... Wait, what if someone inserts spaces
FFfFFffFfff WHIITESPAAACE.
I'll just post-process any tokens and if I see Ast.Member(Ast.Id(A), Ast.Member(Ast.Id(B), Ast.Member( ... ) )
I'll squash that down into Ast.Id( A, B, ... )
More sane than trying to figure out these dumb parser rules.
 
@Schbabako don't include windows headers on computers that don't have windows headers
@ThePhD why are those different
 
@MooingDuck I can't have a rule for qualified_id (an expression), and then have another rule for expression DOT qualified_id (in the expression definition, recursively).
When it expands out, it becomes ambiguous which one the parser should pick.
 
6:21 AM
@MooingDuck how shall i solve my problem then?
@MooingDuck my code works with dirent.h and i have to use it.
 
@Schbabako it appears that the solution to your problem is to install windows.
@ThePhD we're on the wrong side of me understanding the issue. Can't you merge those into a single rule? "E=I(.I)*" + "E=\(E\)(.I)*"
I worked out the issue there
 
@MooingDuck The parser generator doesn't understand regular expressions.
 
definitelyneed two rules
@ThePhD I would expect that you do
 
Right, but when I split the rule up into...
 
@ThePhD Why? Just process the tokens and put them together in the parser.
 
6:25 AM
since I don't know the syntax for whichever parser you're using
 
E = // binary exprs and stuff
E = I (.I)*
E = E (.I)+
It becomes ambiguous from the last 2 rules
Because you can expand the E out into an I.
And then it matches either the second or third rule
I tried to split it up but couldn't do it without also losing the ability to . off of arbitrary expressions, like (expr).a.b.c
(2+2).sqrt() etc.
 
@ThePhD nono. Third one is E = \(E\) (.I)*
 
Oh. I have to require parens?
 
@ThePhD solves the problem, doesn't it?
well, unless it's a function call
 
That doesn't make sense for other expression types like func().a.b.c, right?
Maybe I need 4 rules?
 
6:29 AM
@ThePhD replace I with FE=I that also takes function calls?
E->FI->I?
 
FE = // function call exprs, indexing exprs
E = // binary exprs and crap
E = I ( . I )*
E = FE ( . I )*
 
I think that just shifts the ambiguity to FI.
@ThePhD yeah, that
 
Oh, and a fifth rule
 
I think that's still probably an issue though, because a function call expr probablybegins with an identifier
 
E = \( E \) ( . I ) *
Anything else that could go wrong...?
 
6:32 AM
Hm.....
 
@ThePhD does your syntax allow E = FE ( . E)*? depending on things, that may or may not be simpler
 
I mean. I think I'd need a few more rules.
Like, for literals and stuff
2.pow(12);
Shit my grammar is about to get super complicated.
 
You are doing it wrong... IMHO...
 
@ThePhD make a V (values) that is composed of functions, identifiers, literals, etc, and just use that
 
You need to figure out a way to have the grammar to be a bit deeper.
 
6:39 AM
@ThePhD I think a goal might be for nonterminals to either do interesting things or have multiple rules, but not both
 
@ThePhD
SE -- statement expression, i.e., some top level expression
E -- binary expressions
I -- ID expression, e.g., A.B.C

SE = I
I = E
I = E.I -- change the left/right recursion to your liking
E = ... -- whatever is binary expressions
 
@wilx see, that's way better
@wilx except don't use I because I assume I=identifier, which no longer applies to that grammar
 
@MooingDuck I was not reading the whole conversation. I just woke up. :) The point is I would approach this similarly to how normal arithmetic expressions grammar is done with the higher precedence operations lower in the grammar and with the recursive rules.
 
7:11 AM
> one shift-reduce conflict
SHHHIIIT
So CLOooSosoSOSeeee.
YEEES
IT WORKS
Well, okay. It compiles without error**
Ahhhhnnn the rules are finally without problem
Now to see if it works on source code.
Ahhhh it parses even the new literals so goood.
@wilx @MooingDuck Thanks for helping me get that straight in my head.
Buh.
Functional programming sort of ruins me.
Every time I need to have a new type "propogate" through one of my top-level functions I have to go deliberately pass it down so I can mutate it.
So now I have this veritable leviathan of a function signature taking symbollist, typelist, ast_definitionlist, ...
I just want some mutable variables without the crapshoot syntax.
 
7:41 AM
in case you need entertainment
 
@Borgleader
-26
Q: Ever since stack overflow introduced jobs I keep getting downvoted

Michael CoderWhy is stack overflow the only social media website in existence that allows down-voting? Ever since stack overflow introduced jobs, I feel like people are adopting a covert-aggressive mentality when it comes to answering questions. I've asked several questions about backbonejs, vuejs, and so on,...

 
@Mysticial Buahaha, Shogs answer.
 
7:58 AM
This account is temporarily suspended. The suspension period ends on Dec 13 '17 at 5:19.
 Communities (4)

 Stack Overflow 1 1 17
 WordPress Development 1 1 1
 Mathematics 1 1 1
 Programming Puzzles & Code Golf 1 1 1
I am all suspicious ...
imagine trollng while wearing someone else's picture as your avatar
 
user1804599
8:16 AM
> backbone and vuejs
 
user1804599
> not incompetent
 
Is there a way to defeat HTTPS SSL decryption scheme that my company has just deployed?
 
8:34 AM
What should I do if a very high rated SO user comments on my answer and I don't understand what he is trying to say? We both answered on a question and our answer differs. I answered yes and he answered No.
Should I delete my answer?
 
Do you know if your answer is right?
 
I am not sure now. I think we are talking on different things. His answer is too technical and mine is too naive.
2
One that I read from some other noob blog.
2
 
@Shubham No, until you understand why it is wrong. If you know it is wrong and why, then delete your wrong answer. IMHO.
 
8:51 AM
@wix @ThePhD I have asked for some clarification from him. I have to know whether I am right or wrong.
 
sup badlets
 
@wilx vpn?
 
@Mikhail That is probably not doable. Meh. This sucks.
 
Thinking outside the box you can write a bot that generates a ton of fake traffic, then you can say claim the bot was browsing those porn sites, and not you...
 
oooh, the woahs of running too mnay VMs... so little ram left for host :'(
 
9:02 AM
I think vmware has some stuff that lets you share RAM?
With memory sharing, a workload often consumes less memory than it would when running on a physical machine. As a result, the system can support higher levels of overcommitment efficiently. The amount of memory saved by memory sharing is highly dependent on workload characteristics. A workload consisting of many nearly-identical virtual machines may free up more than 30 percent of memory, while a more diverse workload may result in savings of less than 5 percent of memory.
Does it just checksum each page? Sounds computationally intensive...
 
virtualbox :P
main problem is having loads of chrome tabs open :P
 
Darn, I've been spending hours trying to figure out how to paradigmatic GUI design with Qt. How do people actual learn this stuff?
 
user1804599
@wilx What is that?
 
ergh... and snow it begins... websites are deploying snow fall effects
 
@rightfold Some transparent proxy decrypts SSL and inspects it so that we are not leaking sensitive information to social sites, supposedly.
@Mikhail Practice? :)
 
user1804599
9:14 AM
> This email was sent to: rightfold+spam@gmail.com
 
user1804599
lol Stansted Airport newsletter
 
user1804599
@wilx That sounds illegal.
 
@wilx well that's total bullshit
 
@wilx Unfortunately no
Their routers must be properly configured to bounce the trafic they receive through the proxy
 
user1804599
@wilx Do you use Wi-Fi? If so, use your phone as a hotspot and work over 4G.
 
9:18 AM
^^^ that's the only way
this or turning your phone into an usb modem
 
Jjust have your local ISP install a router in your cubicle....
 
@rightfold Well, that is probably against the rules as well. However, I do not have a rate that could sustain my habits over 4G for more than an hour. :)
@Mikhail Haha. :D
 
@Mikhail I want an rainbow isp :)
@wilx ah, are you using your work internet for thins they rightly would not be happy with?
 
@thecoshman Is watching YT videos that? :(
 
user1804599
@wilx Also ask about the security risks of such proxies on Information Security. :P
 
9:21 AM
0
Q: How can I safely store a password in a .class file?

Aarti JangidI have some .java files containing some password variables, and these variables have values: String password = "xyz"; Now after run, when I open the .class file, it contains those passwords. How can I store my password somewhere safe? I don't want to use DB for storing.

nice :-)
 
user1804599
lol
 
user1804599
> I'm not a java developer, naturally I work with C#
 
user1804599
yeah, C# and Java are totally different
 
The real trick is attach the debugger the moment the decrypted password is used.
 
@wilx potentially... probably that grey area where they can't out right say it's 'ok' but they don't mind really as long as you don't take piss
 
9:26 AM
Sitting under bright lamp, got bitten by mozzie
 
9:40 AM
Still getting used to this new tablet
It disconnects itself every 5 minutes or so
 
@wilx Don't connect through their network
You may try running a VPN, but in general, it's better if you simply treat whatever passes through enterprise network as potentially seen by your employer.
 
My bank's account page's SSL cert recently stopped validating over the company network. :|
 
@Griwes you mean it's not EV? check its cert chain
 
user1804599
@Ven I want to learn JCL
 
10:02 AM
@Mysticial Oh my lord that is an impressive amount of butthurt.
@Mysticial hahaha, what
 
user1804599
10:18 AM
Exceptions are one of the worst features of C++.
 
user1804599
As are all the other features that cause a lack of totality, purity, and/or parametricity.
 
user1804599
0
A: When is return by value ok?

David HaimThe Thumb rules regarding return values in C++ are: never return a reference to a local variable never return a pointer to a local variable don't return a value using move semantics as for (3) - This is a known concern with C++ - we all learned that when an object returns by value - it activa...

 
user1804599
WTF
 
user1804599
> don't return a value using move semantics
 
user1804599
> we all learned that when an object returns by value - it activates the copy constructor. this is theoretically true, but practically wrong
 
user1804599
10:22 AM
Why are any of these answers upvoted is beyond me
 
user1804599
TIL you can burn water with fluorine.
 
10:38 AM
@rightfold RVO takes place even when optimizations are turned off right?
 
11:03 AM
@rightfold kek
 
11:17 AM
Random c++ question: do iterators have to always point to some data? is it ok to implement an n-d loop as an iterator?
 
11:39 AM
that's called a generator
 
11:57 AM
That's called a genderator.
 
Coming from me? :p
 
That's the joke :P
@rightfold You just need high temp and water will burn in and of itself
 
I could trigger many trans people, but mostly because they often trigger my inner feminist x)
 
Remember how it's composed of Hydrogen and Oxygen? Be a shame if somethin'd... happen to that bond
 
12:29 PM
0
Q: Python module for longlong types

markSxI'm trying to make a int64_t module for python because python doesn't have a long long type. I found one in ctypes but I can't use it. So, I have embedded an intro in my application so the best way is to create a module that returns int64_t from c++. PyObject *Py_int64_t(PyObject *poSelf, PyObje...

 
1:05 PM
absolutely amazing ...
but not ideal if you are afraid of snakes
 
user1804599
 
user1804599
Interactive echo lol
 
Ven
Hi
Whoops. 2pm.
 
1:31 PM
TIL the expression "Eifel Towering"
 
1:46 PM
Any chance any you handy with google sheets? Trying to avoid duplicating logic
 
Ven
2:05 PM
lol google sheets
I gave on "google office" a long time ago.
 
now, think about it, most people are hoarders - they like to hoard money if they could ...
 
'gave up on'?
 
@Ven wesh frer yen a qui kiff le son de leur voix ici
 
Ven
@Rerito ? t'as pas juste bloqué le keumé ?
@thecoshman too buggy too unreliable too inconsistent
 
@Ven I need my daily dose of nonsense
 
2:18 PM
Makes sense.
 
Ven
hah!
 
serieux ca vous rappelle pas les keumés qui font leur truc sur la réussite toussa genre moi jsuis trop successful (l of shit)
 
I mostly avoid watching those kinds of talks.
They're generally booooooring.
 
@Ven only issue I've had with google sheets is lack of functions, and that'a only really just making it more complex to do things
but I recently learned that they have a function called filter that does a lot of what I've want for a long time
 
2:37 PM
I'm refactoring an old piece of code
The guy who wrote it was clueless about vector
raw pointers everywhere it's so infuriating
(or one of those folks that are convinced raw pointers mean better purrformance)
 
3:12 PM
@StackedCrooked it's down, from here
That was quick
Actually, just veereey slow
 
user1804599
@sehe do you know JCL?
 
Sounds familiar. What is it again
Java Class Library?
Either that or some kind of hardware command language
 
@rightfold Java commons logging? :)
Or was that something else?
 
@rightfold Ah. Good old COBOL smell on that. I might have seen it because people asked to parse it (on the mailing list or SO)
 
user1804599
@wilx Job Control Language
 
3:20 PM
@rightfold Eeek! Mainframes are evil even though this company profits on them greatly.
 
Ven
yup, COBOLish stuff.
I often stumbled on CL when I was learning COBOL>
 
user1804599
@sehe I want to learn JCL.
 
user1804599
I think I will check out Hercules mainframe emulator.
 
you're weird
 
user1804599
3:26 PM
@sehe bitch please
 
user1804599
% cat www/**/*.php | awk '{ ll = length($0); l = l < ll ? ll : l } END { print l }'
1290
 
user1804599
@sehe It's indeed not normal to be curious. Hence most people aren't. And that's why everything is shit.
 
Curious is one thing :)
I'm always curious but I need a goal before spending time. Because I'm done wasting it
 
user1804599
Goal is knowledge.
 
I think that's a mistake.
I think understanding is a better goal.
 
user1804599
3:33 PM
user image
7
 
@sehe I'd mostly agree. There is a degree to which you need to learn some basic facts as a framework for understanding, but in this case that's (at least mostly) inapplicable. JCL isn't really a language at all--it's just a collection of mistakes, mashed together into a big ball of mud.
5
 
@EtiennedeMartel Considering the question is tagged lazy-loading, I find it appropriate
 
> All lines except for in-stream input (see below) have to begin with a slash "/", and all lines which the operating system processes have to begin with two slashes // - always starting in the first column.
lol
 
So... could anyone spare me some time and let me know of any maven artifact repositories (like Nexus or Artifcatory) that allow you to configure a proxy that can automatically pull things into the proxy, rather than have to wait to be requested. With out this, I get issue with large artifacts; the proxy starts to download from the source but the main client times-out waiting for the proxy to begin the download to the client. Maybe something that allows the proxy to up/download in parrallel
 
I'm provisioning my server
Christmas came early this year
also idrac is super great
 
3:49 PM
@BartekBanachewicz Why do you need a server?
 
Ven
@rightfold you don't need that ($0).
 
@wilx for my team
@fredoverflow he's right
oookey I suppose I do want LVM
 
@BartekBanachewicz Sounds like an XY problem :P
 
@R.MartinhoFernandes it was the default option!!!
@Callionymusneptunius hi. Do I know you?
 
3:53 PM
@BartekBanachewicz you may
 
@R.MartinhoFernandes I just need one big partion I guess, nothing fancy
1.2TiB total, it's in RAID 10
this is super exciting
 
lol
Famous last words.
 
:D
what's the worst that could happen
ueh it boots foreeeeveeer
the installation is finished anyway
 
4:08 PM
@sehe What's the difference between knowledge and understanding? :)
 
yay I'm in
KiB Mem : 74218864 total, 73608472 free,
:3
i can run SO MUCH STUFF
 
never understood why they don't report units in a more human way
 
might as well report in bytes, just as useful
@BartekBanachewicz wrong
74.2 GB, 70.8 GiB
 
@CheukKinSing because humans aren't the normal users most of the time
 
4:14 PM
@thecoshman are you subtly implying linux users are non-human
 
@CheukKinSing Oh nice one
 
@CheukKinSing yawn
SO MUCH STUFF
 
WHAT IS UP
 
ok I need git
 
@BartekBanachewicz Yo
 
4:16 PM
@BartekBanachewicz There, have RTC :D
Share my suffering
 
@VermillionAzure git gut
 
@CheukKinSing lol
@BartekBanachewicz wat
 
RTC = Ruine Ton Code /cc @CheukKinSing
 
I wonder if I should make my shell start in tmux by default
 
Did you mean _git gui_?
@BartekBanachewicz Could be a good idea
 
4:17 PM
Oh look, my two favorite plonked people are having a conversation! How cute! :D
4
 
oh apparently git is installed by deafult
 
@Rerito Rase Tes Couilles ?
 
anyway I have ssh auth already
 
@Griwes Hey Ram
 
Star Wars: Pole Ones
 
4:20 PM
@BartekBanachewicz what OS did you install o_0
 
So uh
Exceptions: Good or bad?
 
Good, but there are exceptions... Huehuehuehue
 
Ell
ggod
 
@thecoshman ubuntu server
@VermillionAzure bad
 
Ugh
I can't decide anymore
 
4:21 PM
@BartekBanachewicz can't tell if serious or joking
 
Maybe I should just move onto Rust or Haskell or Java already
Just make it easier on myself
or harder.
 
@BartekBanachewicz huh... I guess it makes sense to have git by default...
Kotlin > Java
@CheukKinSing ah, hi cicada
 
@CheukKinSing serious?
 
user406009
@VermillionAzure Move onto those from what? C++?
 
what's the problem with that
 
4:23 PM
@Lalaland I think so
 
also is there a default linux group for "human" users?
 
I've been doing SICP recently. I don't like it but it's my senior project now so BAH.
And now I'm thinking of playing around with Rust and Haskell for good measure
Get some of that theoretical functional programming and type systems in the brain
 
bba adm cdrom sudo dip plugdev lxd libvirtd lpadmin sambashare
I guess I need a new group
 
user406009
Haskell is interesting. Especially when you try to write something substantial in it.
 
user406009
Rust isn't that interesting compared to C++. You code mostly the same in Rust as you would in C++.
 
user406009
4:25 PM
Just with more verification.
 
My favorite part of using Haskell is when you throw it away and use a real language instead.
 
@CheukKinSing You can know a lot of facts without understanding. You can understand things without knowing a lot of the facts. Often the facts don't help with the fundamental understanding (they just help check the understanding)
 
@sehe What I meant is that one without the other is pointless.
There is no understanding without knowledge and knowledge without understanding has no value.
Believe my lifelong experience. (Maybe you too one day will understand.)
 
My screen real estate is being robbed by low quality mems
 
4:27 PM
serves you about right
ugh our git repo is too fat
 
maybe you shouldn't have tracked your mom in the first place
 
@CheukKinSing You have never been properly taught. There is no trust without checking, but learning without trusting is severely limiting (in fact, I think it's impossible, and even you are guilty to accepting vast amounts of "understanding" without knowledge).
Point is, not all things that can be understood merit a deep understanding. Different things matter to different people of course.
 
@sehe If I can't convince you then maybe Aldous Huxley can
 
I don't think you'll find much contradiction. Care to reread/spot the original context?
 
@BartekBanachewicz 'too fat'?
@BartekBanachewicz generally speaking, when you make a new users, you make a new group for just that user, with the same name... and only add that user to more groups as you require it
 
4:35 PM
I don't think it's contradictory to say that understanding is often the higher goal than the knowledge. That doesn't at all imply knowledge is worthless or "not required".
 
Most people know about aggregate initialization, but do they understand @CheukKinSing? Do they???
 
I do
I understand cicada
 
@Lalaland You mean, with actual concepts
And a cleaner design that also includes automatic borrow checking
 
Xeo
My first association with that libname was "trading card game".
Click link, hey, it's a lib for trading card games!
 
4:51 PM
Not trading.
 
@thecoshman has binaries
 
@BartekBanachewicz huh?
 
@Xeo It's for running games where there is secret information unknown to all parties without the need for a third-party to manage that information (i.e. without a GM).
(And of course, without traditional physical information hiding tools, like cards :D)
 
Xeo
heh
 
Ell
@R.MartinhoFernandes when I was younger I always wanted to write a DSL to describe card games and generate graphical versions of them from this
You just reminded me of it and I want to try it again
 
4:57 PM
So you can say, play poker with someone over the Internet without a server or a human that handles the deck and the deals, with trust that the deck order is kept secret, that the players hands are kept private to each player, and that they can't cheat their hands.
Can be adapted for any play-by-mail style game, I guess.
 
Xeo
that's cool
 

« first day (2250 days earlier)      last day (2712 days later) »