« first day (629 days earlier)      last day (4333 days later) » 

8:00 PM
@melak47 we're doing server software, and the error detected is not crashworthy
 
What about classes and structs? ClassName, Class_name, class_name ?
 
@Potatoswatter it's a function that we call, it's not a thrown object. And the message param of the function is char* message
@ManofOneWay vector, unordered_map, basic_stringstream, integer_constant?
 
@MooingDuck really? well. I might. Should be a nice exercise, again
 
ah sorry
 
anyone in sthlm, sweden that wanna donate a smoke to me at Ringvägen 52? (just in front of södersjukhuset) ;-)
 
8:03 PM
@ManofOneWay Just pick something and stick to it. Some folks prefer identifiers to visually explain what they represent, therefore types should follow a different convention from objects. I prefer to be consistent across everything and let the words do the explaining.
 
ack. I was reading in 200 million digits if pi, everything was fine...but replacing " " with "" crashed visual studio. fun.
 
19 mins ago, by melak47
I was bored so I just tested the first million digits of pi for the indices of 4 digit numbers
 
@melak47 why not read the 200 million digits of pi runtime, not everything has to be done compile time (also; you could just write a short program to make the transformation for you, instead of trying to use search-n-replace inside visual studio
 
@melak47 can't handle identifiers that long?
 
@refp ...it was at runtime
 
8:05 PM
and visual studio crashed? you must have been invoking some serious UB
 
@MooingDuck ha. I'm using openMP, my excuse for a finger exercise
 
I was actually using C# :p
 
@melak47 what, you think C# doesn't have UB?
 
@melak47 Oh nice, let's bench this sidebyside
 
@sehe ?
 
8:05 PM
whats UB
 
Underwater Boob
 
oh, wait, hold on. maybe it wasn't the replace afterall
 
lmao.
 
@melak47 benchmark :) see how much faster a rather dull unoptimized c++ is compared to c#
 
@sehe I bet you haven't written remotely the same algorithm
 
8:06 PM
hehe sure..who crashes faster? :p
 
@melak47 you crash!?
 
oooooookay
 
yes. the app, and visual studio with it :)
 
"It works, IT WORKS! er, I mean.. it compiles. now what's a segfault?"
 
what he heckkkkkkkkkkkkkk is UB
 
8:08 PM
OutOfMemoryException
@Steve Undefined Behavior
 
oh ty
 
wait.. @Steve were you actually asking fo'real?
 
@Steve UB is when the language doesn't specify what a program does, such that it's allowed to "crash."
 
i really was
 
sorry, most people writing "WHAT IS UB?" in here is trollin' their asses off
it's allowed to do anything.. including making the universe implode
or explode*, depending on the mood of the compiler
 
8:09 PM
i know what undefined behavior is, i just didn't connect two and two
 
okay, so the C# runtime won't let me store 200+ million characters in a String...
 
Well, this is the best place to ask. Although it's probably covered by the FAQ. (See top starred message on the right.)
 
:(
 
@melak47 are you sure? that's only ~1.9 megabytes
no one reads the two things starred at the top, I know I didn't..
 
@refp well, the ascii sources are 209 MB :p
still, I can't have a 200MB String? :(
 
8:12 PM
oh wait, I wrote it wrong.. 100 times my answer and you got the "correct" size
 
:)
 
you should be able to..
but anyhow; I'm going home. if you don't see me here in a couple of hours I'm either out drunk or dead waiting for the subway home
it's mad cold this evening
 
@refp plus java characters are char16, not char, so double that again
 
@MooingDuck but he isn't writing java, so half that
 
@MooingDuck is C# that much like Java?
 
8:14 PM
@refp blarg, ignore me
 
@MooingDuck also, who says that a byte cannot be char16 in C#/my own made up language?
 
@refp the Java spec does I'm pretty sure
 
probably.. it wasn't meant to be a serious question anyhow
 
apparently there is a fixed heap size for strings..or something..:/
 
As for C#: msdn.microsoft.com/en-us/library/ms228362.aspx A string is an object of type String whose value is text. Internally, the text is stored as a sequential read-only collection of Char objects. msdn.microsoft.com/en-us/library/system.char.aspx Char Structure Represents a character as a UTF-16 code unit.
 
8:16 PM
I'm just going to pretend that I didn't read that..
@melak47 how much RAM have you got?
 
16GB :P
that's not it
 
@melak47 Java has a fixed size heap, dunno about C#
 
... how many porn windows do you have open?
 
err..
 
it's a valid question.
 
8:17 PM
none :p
 
lmao
 
don't think that this channel is any serious just because it got "C++" in it's name, if you think you have come to a place where we discuss things regarding C++.. well, I'm sad to say that you are wrong.
 
somehow I don't believe you
 
almost 12 GB RAM free
also, it's happy to have 20x10MB Strings
just not one 200MB String :/
 
why would any normal person require 16 GB of ram if you aren't watching mad loads of porn at the same time?
 
8:19 PM
@melak47 2 billion chars
 
I'm happy with 8
 
@Cicada that's what I got when I looked it up
 
im cruising at 12
 
(on my macbook pro)
 
I'm only trying to load some 200 million
 
8:19 PM
@melak47 fragmentation
 
(is not at all serious regarding the RAM size discussion)
 
@refp 3D Rendering
 
@melak47 I wasn't serious.
I'm never serious.
 
@refp it's only a hobby anyway :)
 
only when I'm rep whoring, which I (for obvious reasons) isn't doing in here
 
8:20 PM
@melak47 3D porn?
 
>_>
 
Recently I've been getting 3G download speeds of up to 800 KB/s. Is that normal?
 
@StackedCrooked you should call your provider and complain
 
@StackedCrooked See your doctor if it lasts more than 3 hours.
 
8:21 PM
@StackedCrooked lately my phone on 3G has been faster than my wifi connection. :( Stupid router.
 
I think 800 KB/s is crazy. In the past it always seemed to be < 100 MB/s.
 
@StackedCrooked < 100 KB/s?
 
@Potatoswatter I never measured, but it was always very slow. Only in the last few months the speed suddenly boosted.
 
Even I get > 100 KB/s 3G, and I'm stuck here in the third world, and the service costs about $1/day.
 
$30/month doesn't seem that expensive to be honest
at least not compared to swedish prices
 
8:23 PM
lol no it doesn't
where at in the third world
 
where in the "third world" are you?
 
Philippines. And it's not $30/month, since I don't pay for it 24/7.
 
oh okay
 
I should move to the Philippines then
 
Well… to be fair, the online sector of the local economy is actually pretty strong. Folks here really like to be connected, too.
 
8:25 PM
i love asian women, i should move there too
 
no, now I really need to head home.. it's 10:24 pm and I'm at the office.. I shouldn't be here
if @Steve is moving there, I'm not.
 
are you getting paid to chat on so?
lmao
 
Heh. If you come here, bring spare cellphones.
 
my sister in law and niece are 100% philipino
filipino? yeah
 
The immigration papers for the niece must have been a job.
 
8:27 PM
yeah, they were going to leave her, lmao and then it got approved at the last minute
she didn't even know, they just yanked her out of bed in the middle of the night and took off to america
 
That's how they roll.
 
things got quiet, i need entertainment, immediately
 
troll someone
 
@templatetypedef is apparently trying to get an obscure badge. Surely there's trolling to be had in that.
 
@melak47 See my code gist.github.com/3062541 and posted the results
0
A: Can any finite bit string be found in pi within a reasonable amount of time?

seheBecause we were all kind of bored in the Lounge I went ahead and implemented a search to find out the average offsets of 'messages' of specific lengths. I downloaded 1 million digits of Pi and looked for all subsequences of fixed length (e.g. 00..99). Depending on the message lenght, you get the...

 
8:36 PM
@sehe omp, eh?
 
@MooingDuck ^^ just did
@melak47 yup, open MP, threading for dummies :)
 
@sehe well, C# has Parallel.For so I guess that's fair :)
 
@sehe "10% of the number of digits of pi," you should reword that
 
@MooingDuck available. Read closely: I downloaded 1 million of them
@MooingDuck Have reworded
 
@Mysticial | I'm the current world record holder of the digits of Pi at 10 trillion digits (2^13).
^ right exponent, wrong base ;v)
 
8:45 PM
@sehe I'm afraid C# can't quite compete :p
although I'm looking through 10 million digits of Pi now
 
8:56 PM
ohai
how goes it?
 
good
 
ah good
 
how about you
 
meh
grumpy
 
today we learned that compressing numbers to their index in pi is not really viable :)
 
8:58 PM
lol
why would you even consider doing that?
 
@Mysticial Whta do you mean you hold the record for most pi digits?
 
I guess that means he's that guy. ?
 
@Drise numberworld.org "y-cruncher is a powerful multi-threaded program/benchmark that is becoming an increasingly popular tool within the computer enthusiast community. As of this writing, it also holds the world record for most digits computed for several other famous constants."
@melak47 wait, that' looks different
 
oh snap
now one of em has to compute more digits!
 
@melak47 100 trillion and one
 
9:02 PM
COMPUTE ALL THE DIGITS OF PI
 
@melak47 That's his partner in that project.
 
@StackedCrooked ah
on a related note...looking for 5 digit numbers in 200 million digits takes ~15s to find them all
6 digit numbers have been running for minutes now :(
this is not helping me being bored anymore :/
ok...say you have a couple images
and you need to merge them into one huge image
and you then need to downsample that huge image to a target resolution
how would you go about it
 
I wonder if a power outage happens does the program have to restart from scratch? Or can it resume?
 
@StackedCrooked there are ways to compute the nth digit of pi
 
@melak47 what is the type of the images? are they compressed?
 
9:07 PM
so you could resume
don't know how their program works at all though
@TonyTheLion unfortunately, yes
it's a bunch of 256x256 jpegs
the problem is, the raw data of all of them combined should come it at about 14.5 GB
 
jpeg (the group) has a very good C library that will do things with images fairly fast
 
so I don't know if resampling with the whole image in memory is an option
 
like upscale/downscale
 
yeah, but can it do that with a 15GB image with ~1GB free memory? :S
 
9:10 PM
it's not a neat downsampling to 1/4 the size either, or I could just resample before merging :/
 
you might have to load your image in smaller chunks in memory and do the actions on these individual chunks
 
1 Billion digits takes 4.75 GB of ram.... shiiiittt
 
@TonyTheLion the problem is..what about the border pixels
 
@melak47 overlapping chunks. It's not 1 chunk per file, it's 9+ chunks per file.
 
@MooingDuck doesn't sound like much fun to implement downsampling..I don't suppose there's a program that does this already
 
9:11 PM
For each chunk of output, load the 4-8 surrounding chunks of input, (from the 1-4 files that they'd be in), and calculate that chunk, and save it.
 
@MooingDuck yup
 
@melak47 I dunno, I work on telephone servers
 
@MooingDuck heh.
so, if I want to resize to 167.18x167.6 pixels, I instead do overlapping 168x168 pixel chunks?
 
@melak47 uh, I was assuming chunks were much smaller than both input and output size. If you're scaling all the way to 170x170ish, it's not worth resampling, you've already lost waaaay too much data.
@melak47 wait, are you making the full size 167x167, or is that from the 256x256?
 
noo
yes
 
9:18 PM
@melak47 got it
 
at the full target resolution, each tile I have now would come out at 167x167
.something or other
100,096x50,176 to something in the region of 65,536xwhatever, ideally I suppose
 
in that case I'd say: For each 2x56x256 image A, load the adjacent 256x256 images, merge them into one image, scale that down 65.3%, then divide that into 3x3, and save the center as the 167x167 version of A. Then you get the full sampling between images, using limited memory.
 
but 167x167 is too small
i.e. i'm losing a lot of .18 and .6 pixels there
 
@melak47 pfffft details. I just gave the overview. You can do occasional shifts by a pixel here and there to get those fractions on average.
 
yup, sounds pretty much as fun as I imagined :/
 
9:22 PM
Total Computation Time: 729.922 seconds ( 0.203 hours )
Total Time (with output + verify): 751.276 seconds ( 0.209 hours )

CPU Utilization: 707.379 %
Multi-core Efficiency: 88.4224 %

Last Digits: Pi
6434543524 2766553567 4357021939 6394581990 5483278746 : 999,999,950
7139868209 3196353628 2046127557 1517139511 5275045519 : 1,000,000,000

Version: 0.5.5 Build 9187 (fix 2) (x64 SSE4.1 - Linux ~ Ushio)
Processor(s): Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
Logical Cores: 8
Pretty slick.
 
only 1 trillion? :P
 
@melak47 Used half of my ram.
 
Only 8 cores ??
 
@melak47 And the result is only 1 GB of ram.
@Cicada Yes.
 
@Cicada 8 logicial cores.
 
9:27 PM
4 physical, yes.
 
"British mathematician William Shanks famously took 15 years to calculate π to 707 digits, but made a mistake in the 528th digit, rendering all subsequent digits incorrect."
That's heartbreaking
 
woah... I woke up to a lot of activity...
 
@Mysticial also on the question itself, someone has taken a stance on the "all your examples are in base 10" thing. :/
 
Yeah, I noticed...
 
@Mysticial So you are Alexander Yee?
 
9:29 PM
@Drise yes
 
@Mysticial Cool beans. I wish I was as cool as you :P
 
Irrelevant, but my sister's kid is also named Alexander.
 
@MooingDuck poor guy
 
Not poor guy. It's his own fault.
 
yaay, looking for 6 digit numbers in 200 million digits of pi finally got me a stack overflow!
 
9:32 PM
@trumpetlicks Take my last comment, replace every instance of the word "digit" with "bit" and it will still hold. It will hold in all bases in fact. — Mysticial 2 mins ago
 
@melak47 It seems to be an order of magnitude for each additional digit.
999969.4 average for 6 digits would be my bet.
 
so much for those social security numbers
@Mysticial I don't suppose you also have a program that can downsample a ~14.5GB image without using more than 16GB RAM, or taking years swapping back and forth on the disk? :/
 
hello folks
"typename Test::CoolEnum" is incorrect - GCC happens to accept that but should reject it. Use "enum Test::CoolEnum" instead. — Johannes Schaub - litb 1 min ago
 
haha, that pi question made it on the multicollider... hotness: 37
 
@Mysticial Multicollider?
 
9:39 PM
@Drise Stack Exchange™ MultiCollider SuperDropdown™
It's the dropdown on the upper left corner
 
@Mysticial I see. Hotness:39
 
There were a lot of answers and votes on that question. That's why it made it.
 
@Mysticial What do you use for threading?
 
@Drise WinAPI in Windows and pthreads in Linux.
 
@Mysticial Interesting. Ever considered openmp?
 
9:42 PM
@Drise I used to have full OpenMP support. Then I dropped it in favor of pthreads.
 
@Mysticial Reason?
 
@Drise pthreads was more flexible
And also, I could use the same threading interface as the Windows code. So it eliminated a lot of code duplication.
 
@Mysticial Cool. I'd like to know how you did your diagnostics as well.
 
hey
hi, i am php and python programmer, which book would you advise for learning C? Thank you very much
 
@hey Get out.
 
9:44 PM
lol
 
hey
 
Let's get a few things straight. You are not a programmer if you use PHP. And C is outdated, and unsafe. Why you would ever want to learn it, inplace of something like C++ or haskell, who knows.
 
hey
even if I can pay taxes while programming in PHP? you are joke (hipster maybe)
 
@Drise What diagnostics?
 
hey
9:46 PM
we are going to start C unit in 2nd year at Uni, I want to learn a little bit before it starts
thanks @melak47
 
@Mysticial The efficiency and such
 
@hey it was a joke, don't use that site :(
 
@hey I pay more than taxes with C++, broski.
 
@Drise "It's complicated." - just like the Facebook status.
 
@Mysticial Balls. I've been looking for a good real-time memory watcher to include in my application. I'd also be interested in how you got all the hardware info.
 
hey
9:48 PM
if anyone will have any suggestions, please reply with my name, thanks.
 
@hey Go to a new university, one that teaches how to use full words and proper syntax.
 
In Linux, you need inline assembly.
 
@Mysticial Ew.
 
user1182183
well everyone who saw me yesteday, my gf gave a a last chance..
2
 
9:51 PM
lol
 
@GamErix Prepare for it to happen again; it will never be like it was before. It also tends to always feel like you're just on the edge, about to fall off.
 
user1182183
i know
 
user1182183
but i ll do my best again, and it will be good
 
user1182183
@Drise shot in the middle
 
user1182183
true
 
9:54 PM
@GamErix So again, I give my words of advice from my long relationship experience and search: Prepare for it to end again.
 
user1182183
I will prepare, I said to her that if one little thing is not right, she may break up instantly
 
Ell
well, my body clock is officially fucked now >.<
 
user1182183
that's what vacation does
 

« first day (629 days earlier)      last day (4333 days later) »