« first day (822 days earlier)      last day (4125 days later) » 

7:00 AM
asking for trouble? or you need it. I would put explicit before it
 
@doug65536, For an implicit conversion from int to S<T>.
 
unless you want mysterious implicits
k
 
So that one might think foo(s, 5) might be able to convert the second or something.
 
@StackedCrooked ok, I'm still doing them but guess I'll get bored soon. 410 was fun though (I have not solved it but like the problem)
 
you are using GCC so you can trust the library to be way more compliant
than MSVC anyway for sure
I've wasted time trying to jam standard type_traits into lambdas etc and found just decltype it myself and it worked right away
 
7:01 AM
Well, I might have to wait until tomorrow to post it anyway. It's 2AM.
 
they're either using python or java in this picture, right? :D
http://denver.arr.ae/wp-content/uploads/2012/11/mercedes-benz-left-brain-right-brain-paint-small-71504.jpeg
 
@chris you were hoping the implicit conversion would construct a temporary and pass a const reference to it?
 
@doug65536, I was really hoping it could infer the type from the first and use that to construct the second without any conflicts. I guess that's what it does now.
 
@chris that seems like it would work right?
I mean, once it matched the first parameter and there was no other hope, it won't consider a conversion to make the overload ok
 
@doug65536, Yeah, but templates. The whole template type thing can be annoying at times.
 
7:09 AM
There are variations on it. Where you hope that since it has a solid match on the first parameter, it would be able to figure it out.
and doesn't work
 
user142019
Does this page work for you? en.wiktionary.org/wiki/preforking
 
@Zoidberg yes
 
user142019
I can't open it. Safari gives me an error.
 
user142019
Hmm weird.
 
@Zoidberg Verb

preforking
1.Present participle of prefork.
 
user142019
7:12 AM
No shit.
 
thats really all it says!
 
@Zoidberg Works in Safari for me.
 
user142019
@doug65536 What does the "prefork" say?
 
besides all the template stuff around the sides of course
prefork (third-person singular simple present preforks, present participle preforking, simple past and past participle preforked)
1.(computing) To fork (a process) in advance, so that additional similar processes are immediately available if required later.
 
user142019
Thanks!
 
7:13 AM
np
when you need a human proxy to a dictionary site, stackoverflow chat is a good first choice
 
user142019
lol
 
meat proxies are slow but reliable
 
user142019
 
lol
 
user142019
GIMME GIMME GIMME
 
user142019
7:16 AM
Also, slow Internet is slow.
 
@chris so you're essentially passing by value with that macro, right?
 
KAY ready for my next project. What should I make in what language?
No haskell
 
@chris I would love to hear why the first one didn't work :)
@chris it not working isnt too surprising but the second one making it work is mysterious to me
@chris I don't understand overload resolution and template matching rules to that depth yet
@Crowz read all this and write an optimizing compiler stanford.edu/class/cs143
 
.-.
I need something babby level programming
 
oh sorry, wasnt being a smartass
 
7:30 AM
I got that hah but I suck, only done java and C too
 
@crowz you play gmod?
 
@doug65536 nah
 
there's a server addon with amazing capabilities and actually programmable microcontrolers in game
I made a flying carpet
it controlled rockets to allow you to steer it
used a gyro sensor and altimeter and code
 
I thinkkk that sounds hard. Never even programmed a camera correctly
Actually that gives me an idea -- game camera
 
there are a few different microcontrollers in the game. one is assembly language-like and is very fast. there is another higher level language. they're pretty easy and it's pretty neat to make automation in gmod.
theres a GPU in game, you can issue commands to render to ingame surfaces
when I saw it I thought that it would be great for newbies to do some programming stuff
wiremod
 
user142019
7:37 AM
You know.
 
user142019
I could use a tree rather than a bunch of nested switches for my punctuation lexer.
 
I wouldn't nest switches, I did this:
switch (ch)
{
case '<':
if (remain >= 2 && s[1] == '<')
{
... etc
with an if else list starting at longest matches
for each one starting with <
the way I mention lets you visually scan across and imagine the whole token
case '<':
  if (remain > 2 && st[1] == '<' && st[2] == '=')
  {
    token_callback(&loc, SINKPARSER_TOKEN_LESS_LESS_EQUALS, st, st + 3, callback_arg);
    st += 3;
  }
  else if (remain > 1 && st[1] == '<')
  {
    token_callback(&loc, SINKPARSER_TOKEN_LESS_LESS, st, st + 2, callback_arg);
    st += 2;
  }
  else if (remain > 1 && st[1] == '=')
  {
    token_callback(&loc, SINKPARSER_TOKEN_LE, st, st + 2, callback_arg);
    st += 2;
  }
  else
  {
    token_callback(&loc, SINKPARSER_TOKEN_LT, st, st + 1, callback_arg);
from what I've seen, the compiler will typically do a really good job with hoisting the common subexpressions from consistent ifs like that.
the first if would probably jump straight to the '=' check if st[1] != '<'
that's no coincidence, I sort them so the similarities are close together and easier to optimize out.
while still being clear and readable - imho
 
7:55 AM
@xeo is it just me, or has it been a long time since the last UHC?
 
Xeo
Mornin'
@thecoshman Yeah, I think so too.
 
oh yes, morning :P
I wonder what a FTB UHC would be like...
@Zoidberg would you stop pushing your shitty research languages
any hoops, I have work to go to ¬_¬ see y'all in a bit :P
 
user142019
@thecoshman NEIN NEIN NEIN
 
user142019
8:12 AM
Speak. It's too quiet.
 
anyone look at the obfuscated c code winner lately?
 
user142019
You?
 
it's utterly mind boggling
it basically made of a ton of function pointer typedefs and invocations that are nearly indecipherable
the calculator one is cool too. expression evaluator and in the source code itself there is a picture of a scientific calculator, and the whitespace and placement of things actually matter.
there is a calculator made of functioning c code
in the source
uses some kind of perfect hash function based on LINE expansions or something to really heap on the obfuscation
_LINE_
I give up
_ _ LINE _ _
 
user142019
__LINE__ noob
 
how do you escape it
 
user142019
8:18 AM
`
 
ah right, code
duh
 
user142019
Darkmown
 
Mawnlawn
 
user142019
ohai
 
They moved my natural habitat closer to my home
 
8:22 AM
is there a usermode threadpool in linux?
 
@doug65536 wut. wouldn't that be a library
 
I mean, threadpool you can use in a normal (non-kernel) program, not user thread switching
 
Oh, you mean coprocedures/fibers
 
ack. any threadpool. QueueUserWorkitem equivalent
 
I think async libs can come close. But zoidberg would rightly say use erlang
 
8:23 AM
too lispy
 
Also, boost ASIO/boost threads
 
they really need to add a really good threadpool implementation in linux
standard one I mean
 
@sehe <thread>, FTFY
 
I don't know how you expect the OS to provide it
@Abyx not really. doesn't come close
 
Of couse I expect the OS to provide it. only the OS knows if its safe to run more threads in my little process
not safe, "a good idea" to start another thread
 
8:26 AM
3 mins ago, by doug65536
I mean, threadpool you can use in a normal (non-kernel) program, not user thread switching
^ I assumed you didn't actually want user threads
 
yeah sorry I was really confusing at first.
 
@doug65536 You're mixing levels of abstraction
 
I meant, a threadpool you can use in a normal program
idc if its kernel based or w/e
so we just roll our own pthread based threadpool and waste system resources by having every program duplicate a threadpool
 
well, obviously the actual threads are kernel provided. but the libraries are yours. A simple google on boost thread pool gives plenty of existing material.
@doug65536 Oh you mean: shared among applications?!
Not gonna happen. Process isolation.
 
so if 10 programs all make a threadpool on an 8-proc, you potentially have 80 threads waiting for work
 
8:28 AM
@doug65536 That's natural. And the OS already does the scheduling. So - job done
 
that's why the system has to provide the underlying threadpool
 
Good luck. This isn't going to work unless the programs actively cooperate. This is going to lead to security dilemma and is a big reason why kernels won't attempt it...
 
here's why the system is the only one who can pull it off: if some thread in my process blocks on a synchronous I/O (or whatever) then the system will know that I am now using (N-1) processors so it may decide to kick off a new worker (based on some other heuristics or w/e)
for an app developer to pull that off, they'd have to route all blocking code paths to a threadpool notification system or something. not gonna happen
 
@doug65536 it -effectively- already does that. It's called (premptive) scheduling. Threads blocked on IO operations/synchonization are automatically skipped
 
does it? I thought I wrote my own for (i = 0; i < numprocs; ++i) make_worker(); in every program
 
8:33 AM
6 mins ago, by sehe
@doug65536 You're mixing levels of abstraction
 
1 or 2 or 5 programs making pools is cool, but once 30 programs all have a pool its too many and performance dies
 
Anyways, I'm planning my journey to work
 
@Zoidberg (╯°□°)╯︵ ┻━┻
 
@doug65536 Nope. Depends on how they use the threads. If you run 30 threads, you're fried anyway. Idle threads don't run
 
that;s what I mean, since the system isn't providing a blocking-call aware threadpool that doesn't overwhelm the system and is aware of systemwide load, each dev will (likely) roll their own resource pig threadpool.
 
user1182183
8:35 AM
does anyone know some open-terrain off road (+racing) games like MOTORM4X ?
 
user1182183
(but something which doesn't require such good hardware)
 
> As far as I know, this steak question originally came up in a lengthy 4chan thread, which quickly disintegrated into poorly-informed physics tirades intermixed with homophobic slurs. There was no clear conclusion. - xkcd sums up 4chan
 
@sehe all those threads add a lot of memory waste to the system. It doesn't matter if the scheduler skips sleeping threads efficiently.
 
user142019
@sehe wat?
 
user142019
Welcome, Konrad.
 
8:41 AM
oh, a personalised welcome message. Thank you, thank you
 
¬_¬ well done, inflating his ego
 
by now I just take that level of attention for granted
to really inflate my ego you’d have to do something more grand
 
hand craft your execution knife?
 
user1182183
Everywhere in the news.. "Java needs to be rewritten", well, that was SLOW.
 
@GamErix link
 
user142019
8:45 AM
@KonradRudolph you're fucking awesome.
 
Java without garbage collection would get my attention
 
who cares what I’m fucking?
 
user1182183
@thecoshman y u no read dutch, but here: techzine.nl/nieuws/32952/…
 
user142019
yo momma
 
user142019
@GamErix HAHAHAHAHAHAH JAVA
 
user142019
8:46 AM
Terrible junk.
 
user1182183
@Zoidberg at least i'm not developing anything for it/using it
 
user142019
I wish I weren't either.
 
@doug65536 You mean a Java that leaks like a net?
 
user142019
But school forces me too. Bastards.
 
user1182183
@Zoidberg :P
 
user1182183
8:47 AM
hey mine forces you to use MS SQL and MS ACCESS together
 
user142019
@doug65536 Java without garbage collector? You mean Oracle's implementation?
 
no I mean something that doesn't give you the illusion that you don't have leaks
 
GC doesn't mean no leaks. you can easily hold refrerences accidentally
 
@GamErix :'(
 
8:48 AM
Taking away the GC won't really help.
 
user1182183
Megaupload online again in a week lol, ETA 6 days ;o
 
(Hint: incompetent programmers are incompetent)
 
user142019
MegaUpload online again?
 
user142019
FBI went less insane?
 
@doug65536 Java doesn't, just like C++ if you don't check for leaks, you will not see them, until your program dies
 
user1182183
8:48 AM
@thecoshman I would love to see minecraft written using C++, Ogre3D and other stuff, not JAVA
 
@GamErix It seems IE finally cleaned up its act.
 
it would be a more readable variation of C++
 
@GamErix lol Ogre3D, but yeah, would be nice
 
with less power
 
user142019
@GamErix why Ogre?
 
user142019
8:49 AM
Just OpenGL is fine.
 
user142019
Also, there is a Minecraft server written in C++.
 
@Zoidberg how developed is that? I thought it was always a bit lacking
 
user1182183
@Zoidberg yes the server, but srsly you know how fucking stong machines yo need to JUST RUN THE MENU OF MINECRAFT O_O
 
user142019
@thecoshman I have no idea.
 
user142019
I only know it exists.
 
user1182183
8:50 AM
I ran minecraft once on a old dell laptop, when I clicked "options" to lower the settings
 
Bukket proves though that you do not need to use C++ to make a decent MC server
 
user1182183
the machine BLEW GOD DAMN UP
 
user142019
Someone should port Minecraft to Haskell.
 
user1182183
IT DIED
 
user142019
lol writing games in Erlang.
 
user1182183
8:50 AM
SERIOUSLY, NO JOKE
 
LMAO
 
user142019
Slow as fuck.
 
@Zoidberg right after they port something useful you mean
 
2 mins ago, by R. Martinho Fernandes
(Hint: incompetent programmers are incompetent)
 
user1182183
I should sue mojang for destroyng a laptop
 
8:51 AM
Further hint: incompetent programmers are close to their peak of incompetence in C++.
 
user142019
You'll lose the case unless you do it in the USA.
 
@GamErix EULA
 
user1182183
@thecoshman they did it on purpose : F when you click options and they think your laptop sux, they blow it up.
 
user1182183
It's programmed in minecraft
 
¬_¬
 
8:53 AM
@GamErix maybe they overoptimized the hotspot compiler
 
user142019
hutspot compiler
 
user1182183
@doug65536 dunno what they did but I can b sure it's not the first and last laptop which died because of Minecraft
 
user142019
Hotchpotch (or in Dutch: Hutspot () is a dish of boiled and mashed potatoes, carrots and onions with a long history in traditional Dutch cuisine. History of the dish According to legend, the recipe came from the cooked bits of potato left behind by hastily departing Spanish soldiers during their Siege of Leiden in 1574 during the Eighty Years' War, when the liberators breached the dikes of the lower lying polders surrounding the city. This flooded all the fields around the city with about a foot of water. As there were few, if any, high points, the Spanish soldiers camping in the fie...
 
does what the old burncpu.exe did. me and a buddy actually (no joke) blew 3 power supplies in a row using burncpu.exe
 
user1182183
yet it ran Red Alert 3 prefectly fine
 
8:54 AM
you could hear the power supply sound funny for 3 or 4 seconds then pop
 
user1182183
srsly there exists a program for burning cpu s, .. lol, what purpose for? testing heating systems?
 
@Zoidberg strange, in UK hotpot is a stew like thing topped with sliced potato
 
for thermal testing
 
user142019
@thecoshman here it is mashed potatoes with sliced carrots and sometimes bacon.
 
the guy experimented with an ammeter and different code sequences and made an utterly pathological code sequence for stress testing
 
user1182183
8:55 AM
@doug65536 well I tested mine, and have to admit it didn't burn bt always shuts down when it can't breathe enough cold air
 
for a few architectures
 
@Zoidberg just mash and carrots? you crazy people gave that a name?
 
user142019
Hutspot is doable if the portion is not too big.
 
@doug65536 surely that would be very chip dependent
 
user1182183
stress testing.. just do while(true){} without sleep
 
user1182183
8:56 AM
run a few threads with it
 
user1182183
and voila
 
user142019
Otherwise it's just a boring, dry blob of starch.
 
yes there were a couple of different exe's optimized to overload different architectures
the "wrong" ones were reasonably effective at raising temps though
 
@GamErix fool
 
user1182183
@thecoshman if I run 4 threads with that code my cpu usage is 100% :P
 
user1182183
8:57 AM
or just turn on IE or CHROME and open 100 youtube tabs
 
user1182183
however I seem to be experiencing more hangups and slower page loading with chrome than IE..
 
@GamErix yes, but just because you are using 100% cpu TIME does not mean you are heating the entire chip, you want to ensure that all the caches are being accessed plenty along with the ALUS
 
user1182183
@thecoshman oh okay
 
some instructions actually cause the chip to use more power
 
though you also want to avoid going to ram, as that is time your CPU could ease of a bit
 
8:58 AM
mawning
 
user142019
evening
 
in short, thermal expensive code is not as simple as you might think
 
user1182183
@Zoidberg 10.a.m ?
 
what's up?
he's in Australia
 
@TonyTheLion he is? since when?
 

« first day (822 days earlier)      last day (4125 days later) »