« first day (2107 days earlier)      last day (2840 days later) » 

Ell
2:22 PM
@BartekBanachewicz yeah, zcash is better :(
 
ar
 
in Computer Graphics, 2 hours ago, by Borgleader
Introducing Vulkan-Hpp - Open-Source Vulkan C++ API http://ow.ly/IaXL302x9w6 #vulkan #api
:P
 
repost from ages ago
 
Ell
I wonder why distributed search engines aren't more successful
I guess the lack of personalized results is it
 
I haven't looked at it much, but I started wrapping the api already on my end so idk if i wanna switch. Probably not since its an interesting design challenge to do so.
 
2:40 PM
what is a distributed search engine
 
Ell
a search engine which is distributed across many servers
I guess I meant P2P
No single point of control
no single entity owning all the data n stuff
 
user406009
2:57 PM
@BartekBanachewicz Actually it looks like I spoke too soon about emscripten being very easy. It is only very easy until you want to do something that emscripten doesn't really support.
 
user406009
Like using structs in your javascript FFI.
 
@Ell Which means nobody to profit.
@Lalaland Best thing to do is write the interop functions yourself- it's much simpler than trying to get Emscripten to generate them.
1 message moved to bin
goodbye!
 
Huh?
 
user406009
@Puppy The problem is that I have a function in C++ which needs to return multiple values. I can easily call this function from JavaScript, but it's extremely difficult for JavaScript to read from a struct. And you sorta have to use a struct to return multiple values.
 
@Lalaland It's easy to write a function to unpack this for JS. You just have to do it yourself instead of trying to get Emscripten to do it.
 
3:08 PM
@Puppy Why did you moved my post to bin?
 
nwp
@Grey read this. TLDR: this is no a helpdesk
 
user406009
Yeah. It's just annoying though.
 
yeah
 
@nwp So what should I do?
 
user406009
Rust also makes this more complicated because you can't have pointers to traits.
 
user406009
3:14 PM
So I need a pointer to a pointer to a trait.
 
user406009
But that's partially my fault for using rust.
 
nwp
@Grey either use better google-foo or ask a question
 
user406009
By partially, I mean completely.
 
@nwp Whats google-foo?
The problem of asking is that a question should be able to be answered and not discussed and I don't think mine has a "right" answer. I might be wrong though
 
nwp
@Grey the skill that makes you type the correct thing into google so you find resources that answer your question
 
3:17 PM
@Lalaland derp
 
@nwp The problem is that it is not something that has a definite answer (or maybe I do not know enough "good design practices") and thats why I asked here. To have a discussion on what is it better. There are many suggestions but I don't know which one fits on my project.
Anyway thanks
 
3:40 PM
@Grey impl in cpp, decl in header
 
hii
can anyone suggest me best way to parse a language ?
 
user406009
@KartikV Use an already built parser.
 
user406009
Tell us more about this language you are trying to parse?
 
tcl
 
user406009
So, an existing, somewhat common language. I would look for an already built parser first.
 
user406009
3:52 PM
If you cannot find one, then I would recommend writing a recursive decent parser.
 
i already did, i couldn't any decent one
 
user406009
That's unfortunate. I stick with my suggestion of manual recursive decent. You don't need a parser generator or anything fancy.
 
so what language you would suggest to write a parser?
 
user406009
Whatever language you are most comfortable with. It shouldn't really matter too much.
 
ok, but still there should be some parser friendly language
which will make my work easy
 
3:57 PM
there are some options: parser generators, declarative parser libraries, or just do it manually
it really doesn't matter because parsing isn't really the hard part for most languages
 
ok, i do not want to write everything manually
i will look for parser generators, declarative parser libraries
thank you
 
@Morwenn tbh they aren't wrong at all
 
nwp
this job looks interesting. Hacking on a compiler is really cool.
 
4:15 PM
nice
> Here's hoping that, in future, scientists like Dr. Boobis will be taken more seriously.
 
Cicada has a PhD?
 
Ven
0
Q: c++ stack how to pop / display from txt file

SungCheol Choi#include <iostream> #include <fstream> using namespace std; #include "IStack.h" int main(int argc, char* argv[]) { ifstream inf(argv[1]); IStack s; char ch; int integer; inf >> ch >> integer; while(!inf.eof()) { s.push(integer); inf >> ch >> integer; if ( ch == 'D') { ...

good questions
:clap:
 
lol I just VTCed that
 
That moment when you realize you know squad about actual computer science...
 
@fredoverflow Because a lot of the time, actual computer science bears little relation to writing good programs insofar as I can see
 
4:18 PM
@fredoverflow hehe squad
 
@Puppy That has been my experience as well.
Okay, time to do some backups, and then install my shiny new (well, 2nd hand actually) GTX 750.
 
@fredoverflow its newly yours, so "new gtx 750" is accurate :)
 
@milleniumbug github.com/PhilippeSigaud/Pegged/wiki how do you this is?
 
@KartikV dunno haven't used it
 
@Borgleader I like its energy efficiency.
No separate power connector required.
 
Ven
4:24 PM
0
Q: How can I empty the form fields after clicking save button

swathi anupuramI want to empty the form fields after clicking the save button. But am unable to do that. This is what i tried Any help is appreciated....

 
Fascinating. I would have expected them to have 100% different or 100% identical numbers. The fact they're the same but rearranged blows my mind. — Mooing Duck 22 hours ago
 
Ven
@Borgleader "This is what i tried <blank>"
 
@Ven look at the proposed edit
 
Ven
waht
the fuck
 
ikr
 
Ven
4:31 PM
also can confirm Q&A repcap isn't shared with doc repcap
these questions
rofl
 
derp
followup codementor session today
resulted in yet another one scheduled
 
-4
Q: Backtracking Algorithms

Magic432I need this in C++ Please: A) 10.7 :: Write a program to implement file compression (and uncompression) using Huffman’s algorithm. Hint: Design the program so that you can use it to solve question 10.3 Provide a working input file and output file. (each should be able to create the other dependi...

/cc @Mysticial I need this in C++ Please:
 
oh welp. I actually spent more on steam games than I thought
 
homework season is in full swing
 
maybe netflix as well actually
 
4:36 PM
erm, isnt netflix a flat fee?
or did you bust your bandwidth limit?
 
@Borgleader it is but I have it hooked to my paypal I think
 
Ven
StackOverflow isn't a code dump website — Ven 6 secs ago
 
welp I spent 60 bucks for netflix so far
now that I think about it
10 eur / month is actually quite expensive
 
Ven
sure
 
depends how much you watch
 
Ven
4:40 PM
0
Q: Why it doesn't recognize parameters of a function?

Alessia90My code is built up with a header file and a .cxx file. In the header there are the declarations of the methods of the class like in the following: virtual EL::StatusCode setupJob (EL::Job& job); virtual EL::StatusCode fileExecute (); virtual EL::StatusCode histInitialize (); virtual EL::StatusC...

sscce ffs
 
@Borgleader quite a lot
it's just my paypal is only ever topped up with my internet earnings :P
and I cleared it out completely when I bought my phone
so yeah I guess it's nice that I'll get something from this weekend
the bad thing is that I have to prepare the workshop plan as well
 
Ven
-1
Q: Javascript Objects and Arrays Elements Access

Mohit SinghHere I am having problem working with java script object, please help me to solve this, I spent whole day for this, could'nt find it. These are some lines of codes what I tried to draw Javascript charting library for time series data set and to support basically when user select the specific per...

remind me why I don't browse SO that often anymore..?
 
youve been posting why for the last 10 min :P
 
is it bad practice to use struct instead of class? i keep making everything public, so fuck class when i can use struct
 
Ven
@Borgleader i have twice as many answers as you do :(
(still less fake internet points because i'm a badlet)
"SO doesn't let you remove a upvote you applied 3 years ago - Because god help you now know better or the question is now outdated"
Oh dear, it's a good thing @Ven hasn't seen my contributions to the vc++.net tag. — jwvh 28 secs ago
don't be proud
 
4:52 PM
oh paypal just charged my CC for netflix
because I had 0 there
 
@Ven Nah, I went on a purge at some point and deleted a bunch of my shitty old answers (I generally delete negative ones within minutes), so most of my 0 vote answers for which there was another answr with more upvotes, i got rid of
dont think it accounted for 50% of them but maybe at least 10%
 
Ell
@ChemiCalChems nop
Though in general, making everything public sounds kinda bad
 
@Ell i make sure i encapsulate if needed, but half the time i don't need it
and i'm not gonna make setters and getters if they are useless
 
@ChemiCalChems no
 
Ven
and now some guy is arguing I should check for "malloc"'s return
no, fuck you. i'm not writing gotos everywhere for that.
 
4:58 PM
what
 
if you're writing an application, there's no shame in exiting on malloc failure
that shouldn't happen anyway
 
Ven
exit() is np. trying to propagate upwards is stupid
 
I think I saw people arguing that you shouldn't do that in a library
because you're only a guest here
 
exit() is dumb as shit.
 
well, it is
 
Ven
5:06 PM
/shrug
 
you shouldn't do malloc manually in the first place
 
I thought that given we're even talking about using malloc, we're talking about C
of course you wouldn't do that in C++
or, you could use setjmp/longjmp, and break every program in existence :D
 
user406009
Eh. There are very few reasons to use c nowadays.
 
Compile times, bruh.
 
no, not really
 
5:14 PM
Hello Everyone :-)
 
user406009
@user5600875 Hi
 
user406009
You might want to consider changing your username. It's hard to keep track of people using the default.
 
@milleniumbug what do you mean no, not really?
i have another Account @Lalaland
 
@user5600875 that C compile times aren't decent
You still have headers
tbh, there are no templates so no much code to parse in them, but still
given that <windows.h> exists, it's fairly easy to make compilation times in C slow down to a crawl
also, when you have no templates, you use macros, so the end result is pretty much the same
 
Yes but that is your coding strategy
Ofcourse if you dont have good coding practice , you can make every langauge slow
But if you compare C and C++ With the same exact code , there is no reason for C Not to have a faster compile time.
 
nwp
5:20 PM
@user5600875 why would that be?
 
...I can't even parse your sentences
 
Ven
@user5600875 stop taking drugs
 
@nwp one sec. ill explain, parents came
 
Ven
get out of this room please
 
Ven
5:21 PM
please stop coding then
i fear that one day i'll have to work with you or with something you wrote
 
It's the duration it takes for your code to compile
 
Ven
0
Q: extract specific fields and combine into 1 text file with perl

ChrisI am trying to use perl to extract specific fields from all text files in a directory output that to one new file, with each text file on a new line. input #Sample = xxxxx #Sample Type = xxxxxx #Build = xxxxxxx #Platform = xxxxxxx #Display Name= XXXXX (keep this field without the #) #identifie...

 
It's dependent on the language, compiler, and the set of source files
@user5600875 There's also no reason for it to have a faster compile time.
 
@milleniumbug And link, in this case.
 
fair enough
 
5:29 PM
the C code won't be faster to compile than C++, it will be slower.
the only reason C code compiles faster is because they use inferior code.
 
> parents came
 
@R.MartinhoFernandes ...... What. How could Wikileaks not prune the e-mails? They pruned the panama papers and other documents, why did they just dump all of these out?
 
@Nooble I can't even
 
@milleniumbug Sorry about that.
 
@Nooble shudders
 
Ven
5:37 PM
lol some guy trying to edit my answer so it doesn't work anymore
 
user406009
@ThePhD They might have simply ran out of time.
 
user406009
With the democratic convention coming up.
 
Ven
@JamieDixon congrats on reading my answer properly! — Ven 5 secs ago
am I mean?
 
@Lalaland I would understand a single mistake or two.
But they didn't even run a regex search on it.
 
@Ven A little.
We still love you though.
 
Ven
5:41 PM
thank you
 
There a way to look at source...
After it's been preprocessed by VC++...
I think it's like /dH
Or something
...
OOLua is cheating.
That's how it's so fucking fast.
It's goddamn fucking cheating.
It uses a fucking state holder for the *this pointer of the class.
And then it never pulls it out of lua, so it can use any kind of indexing scheme it wants, which is what makes it faster than the rest of everyone else.
Lua is meant to be single-threaded, so they can do that and it still works.
Fucking. DIRTY.
 
nwp
put it in sol2, then it's fair
 
Xeo
5:57 PM
@ThePhD That's not dirty, that's a clever use of defined mechanics.
You're just salty you didn't think of it :P
 
I did think of it, but I was afraid that someone might multi-thread their access anyways and that I'd be fucked.
 
@ThePhD wat?
 
Xeo
that's their problem then, isn't it
 
@Puppy In sol2's model (and nearly every other model of binding library), people get the *this pointer of the userdata out of Lua and then call a member function / member variable on it. This has heavily restricted people's ability to create quicker bindings, due to quirks of how Lua delivers to you the *this pointer and essentially demands a 2x lookup.
 
erm, *this is a reference, not a pointer.
 
6:00 PM
OOLua simply stores a this pointer when the class is first created and then keeps a derived class of a resource base that keeps the this. It's... ... it's so dirty. :<
I'm p. salty rn.
Well.
Now that I know what it's doing I can go ahead and be dirty myself.
And do it better than OOLua does. D:<
 
@Borgleader Arigatou
 
@ThePhD I can't even figure out what they are doing and what the difference is based on your description.
 
Ell
@ThePhD git checkout -b dirty
Off you go ;)
 
6:24 PM
Mmnh.
Yeah, now we're gonna see how these benchmarks check out.
Also, question.
When I run the benchmarks on the code it is EXTREMELY volatile if I just do the code once inside of the microbenchmark for nonius, and the fluctuations are gigantic.
So I run whatever hot-spot code 100 times, to stabilize the reported numbers by quite a bit.
When reporting the results, should I divide reported numbers by 100 as well?
 
doesn't matter if you report the results without units and do the same for every input equally
 
user406009
6:42 PM
@ThePhD Why is storing the "this" pointer an issue? At the very worst, you should be able to shove it in the lightuserdata or an integer or something.
 
nwp
There was an argument about if you should take the average or the minimum time when benchmarking. Minimum has the argument that that is the time it actually takes, everything above that is just disturbance from other processes or hardware. On the other hand the average gives a more realistic result of how long you expect the operation to take in practice where you do have other processes. I never figured out which one is correct.
 
I give both.
Bargraph goes up to mean
error bars show stddev / correlation
and then raw, semi-transparent dots show raw distribution of samples
 

« first day (2107 days earlier)      last day (2840 days later) »