« first day (1572 days earlier)      last day (3392 days later) » 

12:00 AM
@R.MartinhoFernandes I've heard some Germans recommend large doses of Jagermeister. It tastes about like cough syrup, and even if it doesn't help you recover any faster at least after a few shots you'll pass out for a while...
 
I should eat something, though.
But I need to go and buy some food.
I'll ask my flatmates in the morrow.
 
doc
@JerryCoffin any alcohol is good for cold, but you must go to bed after drink
@JerryCoffin heated beer or wine is best
and a lot of vitamin c
 
Some oranges and some yoghurt I might be able to eat.
 
Hi, I have to ask you something.
 
Yeah, eat fruits. Especially oranges.
 
12:05 AM
Fruits are good.
@Jefffrey Lemons even.
 
Maybe some milk with honey.
 
doc
paprika, sauerkraut juice this has a lot of vitamin c
 
Fast option is coffee.
 
I can't drink coffee. It will just add another pain to the list.
I'll raid the kitchen for some juice or whatever.
 
@VictorLopez I would like to answer.
As long as it's multiple choice, anyway.
 
doc
12:09 AM
@R.MartinhoFernandes make some mulled wine or beer, drink and go to bed you will feel better
 
@Nooble Given a dimension, (640, 480) for a window, you have 2 options, to use real values for inner objects or absolute values, the window will set the absolute value to every inner object based on their real dimension and thus their absolute dimension will change, and every inner object will do the same to children. What is best for you, to resize objects based in the global dimension or to resize objects based on their parent's dimension?
 
doc
going to bed after drinkin alcohol is important because otherwise you will loose heat
 
@VictorLopez Resize based on parents dimension.
 
@Nooble Take in consideration that if a button has 0.1 as width for a panel with 200 as width its absolute value will be 20, if you attach the button to another panel with 400 as width its absolute value will be 40. It's the same for X, Y positions.
 
Resizing an object based on its parent sounds easy to implement and will save you a lot of hassle when parent directly defines the size of the child.
 
12:20 AM
I was thinking the same.
 
doc
you will need a system of events however
 
bizarre
shared_ptr<Thing> thing = make_shared<Thing>();
thing = nullptr; // i want thing to be destroyed here
std::this_thread::sleep_for(some_time);
// its actually destroyed after the sleep... i think
 
doc
shared_ptr implementation is really weird
 
12:40 AM
@doc Event system is already coded with lambdas and delegates. The question was made since most frameworks deliver absolute positions and dimensions. SFML, OGRE, and such. Ogre lets you to set real positions but they will set the dimension based in the current dimension, not in parent widgets.
 
I lol'd at the starboard
 
doc
@VictorLopez does SFML provide any widgets? Haven't used newest SFML.
 
@doc Well, 2d objects. These are "textures", but in the end is the same, a 2d object that wraps a texture that you can handle to switch to other texture when clicked or released.
 
doc
@VictorLopez you will need to recalculate mouse event's x,y with relative positioning
@VictorLopez maybe that's the reason they use absolute pos, but dunno
@VictorLopez frameworks like Qt use sophisticated positioning model
 
doc
12:47 AM
^ Don't know the guy, but RIP I guess
 
@doc I'm unaware of Qt positioning model, I've tried it but what didn't fit me very well was the signal/slot system, along with Q everything, the need for a object to inherit from Q_Object in order to be signal/slot able.
 
doc
@VictorLopez signals/slots are convenient, although some say they abuse language
 
@Borgleader is the first FF X?
 
@AlexM. Nope its Dead Fantasy
 
oh
ok
 
doc
12:50 AM
@VictorLopez funny, but there's really no perfect GUI framework
 
yeah I remember the thing
I just saw yuna's thighs and thought it's FF X
there was also that other FF X girl there
she's irrelevant tho
 
@doc There's no GUI framework for modern C++.
 
doc
@VictorLopez exactly, would want to see GUI which utilizes templates power
@VictorLopez Qt signals and slots should be possible with variadic templates I think
 
@doc "Crosswind" give it a try.
 
doc
12:53 AM
@VictorLopez that's yours?
@VictorLopez wrong link bro
found it
 
Yes. It's a texture framework coded using CImg.
Right now I'm fixing the absolute/relative size thing.
 
doc
@VictorLopez that's time consumming to get it correctly
@VictorLopez I wrote some widget lib on top of SFML once, but gave it up
 
@doc It is fine now to be used for applications and your own textures but I came into trouble when creating grid-like widgets that auto-resize and aligns when a new widget is attached.
 
doc
@VictorLopez haha
@VictorLopez I remember same issues
@VictorLopez I was using layouts
@VictorLopez but to make things move smart is a topic for a book really
 
@doc All widgets work fine and auto resize but using grids is giving me a pain since they are resized to parent I can't attach horizontal_groups to vertical_groups.
 
doc
1:01 AM
@VictorLopez hmmm are you using layout for this?
@VictorLopez do widgets scale up or just leave space when parent is resized?
 
@VictorLopez You're not using enough panels.
 
@doc They scale up, 0.1 as width for any widget is 0.1 from parent's width, same for position and mouse reacts good, everything is achieved but java-swing-like grids.
I'm not really sure about implementing those tough.
 
doc
@VictorLopez swing is terrible GUI
@VictorLopez grid layout can be achieved with horizontal and vertical layours
it's a kind of extra thing
first implement flow layout, then horizontal and vertical
Qt for a long time had only 2 or 3 layouts, but they could have been nested
also it would be good if widgets could stay at their size
scalling is not always desired
button taking half of ascreen looksstupid
it's really deep topic
brb
 
will glNext be on mobile too?
 
1:15 AM
I have no clue
but I would assume so
 
me too; if there's one thing out there that needs a unified API, its opengl lol
 
When will the majority of PC's support this? 2020? :P
 
is glNext the official name? i remember they had a survey awihle back
 
lol, by 2020 itll be too late
 
@Nooble if they're smart they'll backport a subset of the new API to drivers that support OpenGL 3.2 or something
 
doc
1:18 AM
voxels are the future
 
@Pris I reccommended KoalaGL but I think they ignored that. No better thing to symbolize stability, speed, and platform independence than a koala.
 
doc
^1992 voxel space
 
Are they debating about the name?
 
@VictorLopez they had a survey for suggestions
 
There is no debate. KoalaGL is clearly the best.
 
1:22 AM
Where did phabricator go omg
 
I wish OpenGLX was an option, but silly X windows had to screw everything up. I want them to keep "OpenGL" in the name... cus they have "OpenSL" too
 
@Nooble What about KangarooGL?
 
@VictorLopez Damn kangaroos need to get off my tree!
 
i wonder if ray tracing will ever be fast enough for real time
OpenRT
 
doc
Wayland is a protocol that specifies the communication between a display server (called Wayland compositor) and its clients, as well as a reference implementation of the protocol in the C programming language. Wayland is developed by a group of volunteers led by Kristian Høgsberg as a free and open-source software community-driven project with the aim of replacing the X Window System with a modern, simpler windowing system in Linux and Unix-like operating systems. Project's source code is published under the terms of the Historical Permission Notice and Disclaimer (HPND) license. As part of its...
 
1:24 AM
@Pris It is already
 
@Pris Well, don't they have hardware for ray tracing? I remember NVIDIA had something like that.
 
NVIDIA has Optix (framework for ray tracing engines), Imagination technologies has hardware for that (PowerVR)
 
its not fast enough to replace the kind of rasterization opengl and directx do
 
^
 
1:26 AM
@Pris For scenes as complex as in AAA games, no, not yet. For simpler games, it is.
 
There is a library that replaces DirectX calls into OpenGL calls seamlessly, I'll check it out, just a second. I think that UnrealEngine and CryEngine use it. It is open sourced.
 
angle?
 
Yes, that one.
 
i dont think UE and cryengine use it
 
doc
@VictorLopez DirectX drivers were usually more optimised, so it would not make sense
 
1:28 AM
i would think they handle both opengl and directx on their own for performance reasons
 
doc
I don't get why GPU producers didn't like OpenGL
for me it's like the way to go
 
what makes you think they didnt 'like' opengl
 
doc
@Pris they have accused openGL of being too large
 
you know all major gpu vendors are on the opengl board right? they add extensions and participate heavily in its development
 
doc
@Pris they didn't like to implement high-level features
on driver level
and software mode
 
1:31 AM
Oh, it was OpenGL to DirectX, well it makes sense now, for Windows platforms.
 
opengl features are largely proposed by and implemented by vendors in the first place
 
doc
@Pris of course, but read some press
 
if anything the reason opengl is so large is because of them; the CAD customers of gpu vendors refused to move to shader based pipeline stuff in opengl 3 which caused all the longs peak confusion
 
doc
@Pris OpenGL drivers were slower than DirectX
because they have spent more time on Dx drivers
 
There is a lot of ancient crap in OpenGL that nobody in their right mind would use today (e.g., support for 4- and 8-bit "indexed" graphics modes), and getting rid of it would be good for everybody.
 
doc
1:34 AM
@JerryCoffin that was one of the reasons why vendors preferred DirectX over GL
 
@doc do you have a source for all these claims?
 
doc
@Pris meh I don't have them now. Also do not call it claims, were on the chat
 
@doc Not really--vendors (especially nVidia) are fine with OpenGL anyway. The real problem is that MS managed to sell enough game developers on DX that the competition to produce the fastest card largely came down to competition to render DX the fastest. The vendors didn't really like that, but had little real say in the matter.
 
doc
@Pris Im telling you only just what I remember
 
@doc There are a number of people here who dislike OpenGL themselves, and attribute quite a few things to vendors that don't seem to fit very well with any comments I've ever seen from the vendors to whom they were attributed.
 
doc
1:38 AM
@JerryCoffin it could be OpenGL as well. There was a time when OpenGL games were better and more advanced. It changed slightly after Q3
Quake3
 
The experience I had in video game environments was OpenGL first due to implementation in Android, IOS, Blackberry, Linux, Mac. DirectX was later added since it was required for all shaders to be rewritten. But in fact, what I've seen in video game companies is that they target OpenGL first due to cross-platform development.
 
Hold your horses.
1157
A: Why do game developers prefer Windows?

Nicol BolasMany of the answers here are really, really good. But the OpenGL and Direct3D (D3D) issue should probably be addressed. And that requires... a history lesson. And before we begin, I know far more about OpenGL than I do about Direct3D. I've never written a line of D3D code in my life, and I've wr...

Read this instead of discussing it here.
 
@JerryCoffin But my tamagochi!
 
MIPS!
 
doc
@VictorLopez consoles and mobiles save OpenGL's ass
saved
 
1:43 AM
@Rapptz ... most of that is entirely irrelevant to the question asked. It seems 1,157 people upvoted because it's long.
:(
 
You suck.
 
@LightnessRacesinOrbit ITT size matters giggles
 
@LightnessRacesinOrbit The question is poor.
In the body it says "Is it that DirectX is easier or better than OpenGL, even if OpenGL is cross-platform?"
 
I'm guessing he answered this bit.
 
1:44 AM
It reminded me the Ati 3d Rage cards with 4mb dedicated for video memory. It was such a hardware.
 
He didn't ask "is it that DirectX has at some point in its history been easier or better than OpenGL, and how did this change over time with every new release of each API and what market conditions led to those releases being made at the time that they were made? and more information as well please"
interesting story but belongs on a blog
 
i had a riva tnt2 not an ati rage :]
anyone remember matrox
and 3dfx
 
:( they burnt the Jordanian pilot alive :( he was 26... I don't even have words
 
iunno when I read it I felt like it answered the question
been a while since I read it though.
 
I remember the voodoo cards.
What a topic.
 
1:49 AM
@doc You can exit your posts by clicking the down arrow to the left of it for a full 2 minutes after you've posted it - try that.
 
doc
@Nooble k thanks
@Nooble but I used to type fast so it's easier for me to retype
 
I need to work on this SFINAE overload problem again
 
doc
I wonder if it's wise to rely on C++ features like SFINAE
what if C++ will be abandoned and you will have to port your code to totally different language?
 
lol
That would be a massive waste of money.
 
doc
yeah, but I'm affraid C++ does not have bright future behind :/
bright
 
1:53 AM
Seems bright to me.
@doc Just so we're clear -- this is true for any language.
Relying on features of a language that aren't available in another language is a non-issue because you chose the language to work in.
Porting it over would be silly.
 
doc
@Rapptz there were some ported libraries
 
@AMostMajestuousCapybara Why can't ISIS just fuck off already.
 
@Nooble Precisely what they're thinking about you and your family.
 
@Nooble I don't know. It's beyond any rational logic.
 
I can see plenty of rational logic in it
If you are a bunch of twats and you want the world to do what you say, about the only way you're going to be able to even have a remote chance at it is to take hostages and become feared for following through on your threats.
 
1:57 AM
> rational
 
ISIS nearly got a hostage exchange out of this last week, a month after the Jordanian pilot was actually burned to death (we think ATM).
 
@Rapptz Read it, but then forget at least 50% of it. It's a wild mixture of everything from insightful to grossly inaccurate, and probably a little of almost everything in between.
 
They have demonstrated incredible resourcefulness and tactical prowess since surfacing.
 
Don't make the mistake that world leaders have made with smaller terrorist groups, of looking down on ISIS as some sort of group of IQ-limited sheep farmers with knock-off Soviet-era weaponry. They are not.
The only differences between us and them are: (1) ideology, and (2) brazenness of coercion methods.
 
doc
1:59 AM
politics should be banned
 
@LightnessRacesinOrbit Coercion is easy to understand but hard to track.
 
doc
world would be a better place
 
They may be misguided from a Western (and others) point of view, but they're absolutely not stupid.
@AMostMajestuousCapybara yeah, that
2am wtf
 
It depends what you mean by "stupid"
 
2:01 AM
Well, non-centralized systems all work the same.
 
I think I wasted most of my night setting up a Spotify playlist to match the tracks that came off the Spotify radio all day long (thanks, last.fm!), and that took forever.
 
There is a parent class with children but the parent class came from an obscured API, each parent delivers a message to children and reflection is not possible.
That way is possible to deliver orders without receiving an answer. Just like Twitter.
You can't really track the origin.
 
doc
I want to tell you good luck and good bye
 
UNLESS you know what are they talking about and what's the current subject. But since right to left languages can be created with native languages, it is hard for some to understand the crypto-pseudo-language they use.
 
@VictorLopez that's true of literally every communication technique ever invented
@doc I just want to tell you good luck, and we're all counting on you.
 
2:05 AM
For example, a in spanish is said ei, e from elf and a. in reversal it is said ie
 
doc
@LightnessRacesinOrbit good bye, I will try to do my best
 
and you can mirror ie. Is there a place in where I can post images to be used in the forum?
 
Yeah, but is it ok to bring the urls here in the chat?
 
2:16 AM
You cant mirror ie, u w0t? Piedra vs reina...cmon man.
Source: me
 
How would you calculate the following in C++? 41 sin 2
 
@DonLarynx Not that mirror, I'm stuck with GIMP.
 
@doc great
night guys
 
tag dispatching so tedious
 
@VictorLopez what "forum"?
 
2:18 AM
I want concepts
 
@LightnessRacesinOrbit I did mean chat, my apologies.
 
anyone happen to know?
 
@DemCodeLines Know what
 
6 mins ago, by DemCodeLines
How would you calculate the following in C++? 41 sin 2
 
41 * std::sin(2);
 
2:36 AM
boards.4chan.org/g/thread/46408336 It is pronounced in reversal spanish, translating first the characters into the syllabic pronunciation.
You can mirror again to create the script. boards.4chan.org/g/thread/46408336#p46408386
 
2:51 AM
Oh boi.
Another lost soul.
 
2k watts...
 
@Jefffrey :C
 
That'll trigger the circuit breaker.
 
@Mysticial Why would you need that? I don't think even 4x GTX 970s will pull that much
 
4 R9-290X's won't pull that much.
 
2:52 AM
GTX 970 is pretty power efficient.
 
@Mysticial You should optimize y-cruncher for Raspberry Pi 2 ;)
 
@Borgleader The most I've ever pulled from a single machine was 900W. Dual-socket CPU with 16 server FB-DIMMs, a shit-ton of hard drives, and a mid-end gaming card.
 
I'm really sorry that I can't help a student understand.
 
Understand what?
 
This one guy gave me an excellent review, but I know I haven't helped him with the exercise he was given.
He had to implement a LinkedList in Python. But had troubles figuring out how many arguments does a function like: def func(self, a, b, c) takes.
We have basically spend 1 hour and a half explaining the very basic knowledges of Python.
Not even began the exercise.
I'm having a strong deja vu.
 
2:55 AM
The biggest PSU I have right now is a Corsair AX1200 which I got to replace an Enermax 1000W that blew out after 5 years of use.
 
I would need at least 5 hours with this guy.
 
How much would that cost?
 
$100
 
Are these college students?
 
I dunno.
He said he had to leave for work now.
 
2:57 AM
I feel like I have the knowledge to help people but I lack the confidence in it to try.
 
3:11 AM
@Mysticial At least in the US, most older circuits were limited to 1650 watts, but most current ones are good to 2200, so they would support that, but not (much of) anything else on the same circuit.
Of course, it's a 220 volt-only item, and I really don't know much (if anything) about what size breakers they typically used on 220 volt circuits in Europe. Here 220v volt circuits are usually good for very high power, but they're normally only supplied to a few specific spots that need exactly that (e.g., stove and air conditioner).
 
We're all geeks.
 
merkins and their 110v
 
@VictorLopez You're a geek. @Borgleader's a nerd. I'm a loser winner whiner.
@AMostMajestuousCapybara Europeans and their inefficient 50Hz.
 
Good morning.
 
Morning.
 
3:25 AM
@JerryCoffin Merkins and their power-hungry 60 Hz
 
@JerryCoffin I'm not sure, but here it's 220V and main breakers/fuses are mostly around 20A-30A.
 
@AMostMajestuousCapybara "power-hungry"? What do you think you're talking about? 60Hz transmits through transformers substantially more efficiently than 50 Hz does. Granted, a higher frequency would be better still, but 60 is clearly better than 50.
 
@JerryCoffin Clearly you know nothing about Hz. 50 > 60.
 
@AMostMajestuousCapybara How can you say I know nothing about Hertz? I've rented cars from Hertz several times.
 
You won't notice if your body is vibrating at 50 or 60 HZ if you get electrocuted anyway. :P
 
3:30 AM
@JerryCoffin Was that more in the sixties or in the fifties?
 
@AMostMajestuousCapybara Fifties or sixties? I wish! I'm pretty sure it was at least a couple of hundred dollars per week.
 
@JerryCoffin Then clearly 200 Hz trumps all
 
@AMostMajestuousCapybara Nah--there are many other car rental companies to consider.
 
god boost::date_time is a complex piece of fuck
 
@AMostMajestuousCapybara You expected something from Boost to not be complex? Next you're going to tell us you thought it would be documented too...
 
3:39 AM
I was typing that
 
@AMostMajestuousCapybara You don't want to leave out pre-Gregorian people.
 
The worst I've seen so far is Boost Graph Library
 
boost graph was the first boost thign i ever used boost for
i couldnt figure it out, i remember badgering people on #boost for help
 
@Pris I guess after that, giving up your humanity in exchange for Eucalyptus is understandable.
 
3:56 AM
eucalyptus? you dont have me confused with nooble do ya
 
@Pris Oh, don't try that. I've seen you two together--it's clear what's going on.
 
Lolwut
@JerryCoffin I admit to selling him 1 pound of eucalyptus for exactly one humanity.
I should've charged more, I know.
So, wait, Pris is a koala too? Since when?
 
 
1 hour later…
5:18 AM
@Nooble Oh, I'm not sure about koala--but definitely a eucalyptus addict, and no longer human (but koala is hardly the sole alternative to human).
 
6:14 AM
If you click on the post, it takes you to search results for the note on various online music stores.
3
 
6:46 AM
My current nominee for utterly inane comment of the day goes to:
//Default constructor, initializes NUM_QUEENS to 8 in initializer list
EightQueensProblem() : NUM_QUEENS(8){};
 
EightQueensProblem() : NUM_QUEENS(8){ /* Do nothing */ };
;)
 
Since I'm sure that will produce a flurry of excitement to write an answer immediately, the link: stackoverflow.com/q/28314944/179910
@MarkGarcia Even that's marginally less inane.
 
//2D array of int values not on the heap of dimension CHESSBOARD_SIZE x CHESSBOARD_SIZE
int chessboard[CHESSBOARD_SIZE][CHESSBOARD_SIZE];
lol
 
I wonder if I could make an allocate which has constexpr allocate() and deallocate() methods.
 
@JerryCoffin Tehs codez are hilarious!
 
6:52 AM
@MarkGarcia I figured at least one person would get some enjoyment from it. :-)
@StackedCrooked You might be able to tack constexpr onto the functions. Actually being able to use them in cases that called for compile time execution is a whole different question.
 
if i could use the size argument as a compile-time integral then maybe that would allow interesting stuff
 
@MarkGarcia It does occur to me that 8 queens would be an interesting one to write as a template metaprogram that printed out the solutions in error messages at compile time. I'm almost tempted to work on it...
 
@JerryCoffin You go on. TBH I don't even know how to error-print when metaprogramming. Or 8 queens!
 
uff
today me++;
I feel old
 
@MarkGarcia Somehow reminds me of the old line about "we are not surrounded. We are merely in a target-rich environment!"
 
7:12 AM
You can use the debug message from static assert to print a chessboard.
maybe
 
@StackedCrooked I think you'd just print the positions of the queens.
 
Bummer, this isn't valid:
constexpr int test(int n)
{
    static_assert(n == 1, "");
    return n;
}
Can't use the arguments as integral constants.
 
@MarkGarcia Here's a short tutorial on the general idea (doing Towers of Hanoi, in this case):
10
Q: Solving the Towers of Hanoi at compile-time

FredOverflowI am trying to solve the Towers of Hanoi at compile-time, but I have discovered a problem: template<int src, int dst> struct move_disc { // member access will print src and dst }; template<int n, int src, int tmp, int dst> struct hanoi { hanoi<n-1, src, dst, tmp> before; typename mo...

 
this stuff gets closer and closer to Prolog every day
 
7:31 AM
@MarcoA. What stuff? That looks to me like pure C++98. For that matter, the C++ features it uses were becoming well known by around 1995 or 1996, so it's close to 20 years old...
 
@JerryCoffin uh just a deja-vu from the university prolog years
all those recursions with a "substitute-or-rollback" style
it's not a bad thing actually
 
@MarcoA. Looks like stuff I did in Pascal, before I'd ever even heard of Prolog (though I guess it did actually exist at the time).
 
Whats the correct return error code if the file size exceeds the limit when reading
Currently I am ERROR_FILE_TOO_LARGE
but the description is The file size exceeds the limit allowed and cannot be saved.
I am not saving. I am just reading
 
@JerryCoffin I did some Pascal too. In the old days there was a "national IT plan" in high schools.. and they taught you Pascal :/
it was outdated back then yet
 
@sameer ERROR_PROGRAM_BADLY_WRITTEN
3
 
7:37 AM
So I spent a couple hours playing with Intel's Vtune. It's pretty neat. Didn't take me much time to find a couple of loads that were cache missing a lot.
So I prefetched them out and the analyzer said they weren't a problem anymore.
 
@Mysticial Does it run noticeably faster now?
 
In my single threaded benchmark, it made the routine run 5% faster. Problem is:
When I run it with 16 threads...
There was no fucking difference at all.
Hyperthreading had been hiding the cache miss latency the whole time.
 
@Mysticial That's pretty much what it's supposed to do...
 
Vi and Vim
2
 
The other thing I played with was Intel's Cilk Plus. It's pretty awesome. y-cruncher has a routine called DispatchTasks(taskA, taskB). Which basically runs the two things in parallel. It has always been implemented by spawning a thread.
 
7:44 AM
onebox being onebox as usual
 
So it was a 2-line change to switch it to Cilk Plus.
When I ran it, it achieved CPU utilizations that I've never seen before. Problem is, it has so much overhead, that it ended up being slower than my old method of thread spawning... lol
So what did I accomplish tonight? Absolutely nothing. :)
 
@Mysticial sounds like a typical night of performance optimization
spend a full day implementing this entire cool optimization technique: ends up being slower
 
@Mysticial Nothing's more CPU-utilization-efficient as my infinite loop!
 
@MarkGarcia depends on what you'd do inside the infinite loop
 
@orlp Normally I recurse into another party of infinite loops. ;)
 
7:49 AM
meh, that does barely anything
@MarkGarcia the trick is to write an infinite loop that maxes out every single corner of the CPU, all possible units
 
@MarkGarcia I'm not lying when I say that Intel's own profiler said that it's own Cilk library was the #1 CPU hotspot.
 
@Mysticial Cilk to Intel profiler: "Aren't you proud of me yet?!"
 
someone should make an uncertainty principle for profiling
 
I'm not trying to bash Cilk. It makes parallelizing stuff stupidly easy. But it has a ~5 - 10% CPU overhead.
 
"The more accurate you are profiling, the less accurate the runtime of the profiled program becomes."
 
7:51 AM
That overhead is enough to make it worse than what I've always been doing.
 
@orlp If that's the case then I'll just make the program download hordes of virus code and let the anti-virus do its job of CPU utilization (which is what it does best)!
 
@orlp I've done it to one of my roommates in college.
 
Real CPU utilization isn't measured through your OS.
It's measured with a thermometer.
 
I actually did it to his disk and pagefile. Not his CPU.
 
@Mysticial I did a funny optimization recently.
I was doing pollard's algorithm where you're repeatedly computing f(x) = (x^2 + 1) mod p
 
7:55 AM
@orlp I chuckled at that.
 
so I did it in montgomery form to make the modular multiplication faster
then I realized that incrementing a number by 1 in montgomery form in basically the same as adding 2**64 mod p
which also works fine
then I realized that very rarely a number will overflow if you only add 1
so rarely, that handling overflow is slower than just letting a couple of monte carlo tests just downright fail
it's not supposed to work, but it does :P
 
Wait, are you supposed to add the Montgomery form of 1? Whatever the hell that's supposed to be.
 
x^2 is in montgomery form
 
Disclaimer: I've never implemented Montgomery reduction, so I probably don't know exactly what I'm talking about.
 
so x^2 * 2^64 mod p
if you want to add c to that in montgomery form
you need to add c * 2^64 mod p
 

« first day (1572 days earlier)      last day (3392 days later) »