« first day (853 days earlier)      last day (3323 days later) » 

2:00 PM
just for safety measure, put a try catch in that catch
you never know
 
@iKlsR Good point, but you have to try catch that too then, so you'll end up in an endless loop of try-catch-finally-try xD
 
"Just make it all recursive" - @Eric
 
Yeah, recursive try catching~ Because screw logic
 
Famous last words before getting fired
 
Lol
 
2:02 PM
so the first 4 episodes of new season of Game of Thrones are ok I guess
 
@ton.yeung Hence the ignore(e);
We don't want anything to do with it, it never happened
 
function random() { throw Math.random(); }; try { random() } catch (r) { console.log(r) }
 
Eventually it'll go away
Right?
 
Catchball oriented programming
 
If you don't care about the performance of your code, just try catch your main function
 
2:03 PM
@Hakase u filthy pirate u
 
or try catch your index.php/index.asx or whatever
 
calls Obama
 
@AsadaShino throws Throwable
 
Lol
 
@iKlsR u_have_no_power_here.jpg
 
2:04 PM
:(
 
Which manga?
 
I don't read manga
 
@Hakase lol u can't read
gg
 
@ton.yeung I think there are apps getting their source from illegal sites
 
Class Baseball extends Throwable {
public static void Baseball() throws Throwable {
throw new Baseball();
}
}
~
 
2:06 PM
guys wat is this
is it java?
 
@AsadaShino just make that a Factory so we can coin unique bugs
 
From what I remember of the language, it is
Bahaha
 
@Hakase COBOL
 
BugFactory.CreateBug(Bug.Reasons[Math.Random(0, Bug.Reasons.Length]))
 
@Hakase I'm not sure whether Throwable can be part of throws clause, though
@ton.yeung Those aggregator sites mirror the content soon (TM)
 
2:07 PM
18
A: Is "throws Throwable" good practice

BohemianYou should not throw Throwable. Here's why... Throwable is the top of the hierarchy of things that can be thrown, and is made up of Exceptions and Errors. Since Errors by definition arise from unsalvagable conditions, it is pointless to include them in your method declaration. That leaves just E...

code review?
ye they're nice guys :p
 
@ton.yeung I thought it did use extends, lemme check
 
no extends
just :
 
user image
2
 
Ah right
 
@ton.yeung Go ahead. Though I don't like the fact that every license series in the US simply pull the plug for the rest of the world
 
2:09 PM
and Java has extends and implements iirc
It's been years since I last used Java
 
@iKlsR it's clearly upside down − nobody puts walls of text on the front page
 
@ton.yeung Manga and anime is less of the case
But it is the case for LN
And there are series which simply stopped getting updated/scanlated when it is released in the US
@ton.yeung Chapter 3?
Yeah, the only way is to read raw
Unless the series is popular enough, no one is going to scan the US book
And even if they scan, the publishers are very efficient at taking them down nowadays
 
@Taisho Yamato Hotel
 
2:26 PM
19
Q: How do I calculate clock speed in multi-core processors?

NReilinghIs it correct to say, for example, that a processor with four cores each running at 3GHz is in fact a processor running at 12GHz? I once got into a "Mac vs. PC" argument (which by the way is NOT the focus of this topic... that was back in middle school) with an acquaintance who insisted that Mac...

I'm reading the basics of CPU speed and I still don't know whether more cores is better on average for a modern day's pc (and my tasks specifically)
it looks like it's not worth getting i7 cpus with 4 cores for a home pc
an i3 cpu with just 2 cores seems more suitable
I may be completely mistaken tho
 
I use an i5 at home, for that reason
 
@Hakase i7 has hyperthreading, but it is going to be only slightly faster (20%, last time I read) than non-hyperthreading
 
Most games and such don't support multithreading, or at least not very well, so there's not much point
 
I assume most apps even today are single-threaded
so I suppose the more cores and the more threads a CPU can pull, the less time it spends on processing each app
 
Probably, except bigger projects/programs. Where it's necessary, I guess
 
2:31 PM
so 8 threads of 4GHz CPU is actually 500MHz per process?
 
I prefer having 4 core, since in worst case, one core is going to be used by Windows Update, which leaves 1 core for background stuffs and another core for browsing/watching video
 
@Hakase Wut? xD you mean 8 threads of 500 MHz is 4GHz?
Ah right haha :P
 
@Hakase No. each thread is 4Ghz
 
oh?
 
Though for hyperthreading, I don't think you can have both threads running at the same time on one core
 
2:32 PM
Having multiple cores improve clock rate with or without threading in an application.
 
If you have a perfectly implemented multithreaded application, you'd have about equal performance compared to a single UBERcore, but that's rare :P if it even exists
 
^^
 
so 4-core 4-thread CPU is 50% as fast as a 4-core 8-thread CPU at the same number of GHz that is listed in hw specs?
 
Anyway, high clock rate doesn't mean anything with all the cache miss and disk access
 
@AsadaShino we're talking about today's world and today's apps
 
2:33 PM
You're only as fast as your smallest bottleneck :P
 
@nhahtdh Yeah, so it's moot.
 
@AsadaShino which is why I wanna find out which it is
 
@Hakase Then you'd be better off with a 32 GHz core, rather than 8x4GHz, I guess haha
 
@Hakase No, as I said above, hyperthreading only improve the speed a bit, since it execute the other thread when the first thread go to fetch data from cache
 
The entire star board are pictures :D
 
2:33 PM
and whether having more threads and cores is slowing down single-threaded apps
 
But then again, do 32GHz cores exist? xD
 
It shares the execution part, only the fetch part is duplicated, iirc
 
@ton.yeung idk if there's a reason to use i5 instead of i3
 
I think there are new instructions in newer processors, but whether programs are compiled to use them is another matter
 
3.8 vs 3.9 doesn't really matter for a home pc
but what about that number of cores difference?
if there are 4 threads in both, does it mean anything?
 
2:37 PM
Real core is better than virtual core
 
how
 
From what I know, physical cores are better than virtual cores, since they don't run on one core
Virtual cores still run on a single core, but it simulates two cores
 
@AsadaShino why?
someone just said above that the GHz is per thread, no?
then cores shouldn't matter
 
Like I said above. Virtual core shares execution pipeline, so 2 threads can never be run at the same time on the same core with hyperthread. If you are running intensive program on multiple cores, physical core should be better
 
2:40 PM
komeiji koishi
 
@ton.yeung This is the reason I'm thinking of getting an i7 xD But I'll wait for the next generation which is coming out in Q3 this year I believe?
I have my browser open and a youtube video and some downloads, while playing a game or something xD And I cba to close them every time I do something else
 
I'd say "if you only download music, just get the oldest, cheapest CPU you can find that fits your socket"
 
I'd rather just overpower these things than have to pay attention to little things
 
I think so
 
Then I'll wait for Skylake and then get the... Rockwell is the latest, right? Rockwell i7 probably
 
2:44 PM
@Hakase If you are using Windoze, you need to take into account Windows Update
 
utorrent only ever uses one core according to procexp
 
Doesn't that depend on the application?
Though from experience, most torrenting programs seem to only use one core
Haswell, right, that one then xD
Though it'll still be expensive
The mobo+cpu combo I have seen before, was about €850 a few months ago
@ton.yeung Don't cpus get cheaper when a new generation is released?
 
Programs are usually compiled with the lowest denomination, so most of them don't take advantage of the new instruction. Maybe except for new games
 
Oh, dang, I've never really looked at price flow...
 
yes but not really enough
15% maybe in the first half a year, not a lot even much later
 
2:47 PM
i7 are quite expensive~ But I want one, so I don't have to care about closing programs to not have stutter in a game because my cpu is capped by other programs
@ton.yeung e edition? the K versions? Or something above that?
Aha
That sounds a bit overkill for what I want to use it for xD
 
@AsadaShino what actual use cases are we talkin about
 
@Hakase Game + browser with 20+ tabs + torrents + youtube video + teamspeak
 
you should never run torrents on your gaming pc
get a nettop to handle the torrents
 
@ton.yeung Aha, nah, I'll stay away from extreme versions
 
@AsadaShino i had no problems with that with my i5
maybe reason why you stutter is your torrents
 
2:49 PM
it most certainly is
 
@Hakase I've still not gotten to doing torrenting on my NAS~ I forget ~_~
 
get to it and stop worrying about unnecessary purchases
just use what you already have, smartly
 
@Frosteeze Probably, nearly 2k torrents in the program (not all active, probably) could do that
~
 
Beep boop
 
Beep BOOBS
 
2:50 PM
I'll find out what program I can use for my Synology then :P
 
@AsadaShino That's going to take a long time to load for uTorrent
 
idk why people who play games and do weird computer stuff only have one computer for all of that
 
@Hakase We are cheapskates.
 
actually not
 
2:52 PM
@nhahtdh I use qBittorrent, it still takes a bit to load, sometimes it just freezes, I'm going to clean it up when my current batch is finished downloading xD
 
get top of the line i7 and do everything on it?
 
@ʞɹɐzǝɹ was it you who was asking what I thought about Miyazaki's biography? I enjoyed the talks at the start of the book, but I thought the interviews and stuff weren't that interesting
 
doesn't make sense
more expensive than multiple computers with weaker processors, suited for different tasks
 
@Hakase You need to get like 16GB RAM, plus SSD for speed
 
I do have a i7 2770K lying around, would it be worth it to use that instead of my current i5 3570K? xD
 
2:53 PM
Well, torrent can go to NAS
 
torrent clients require only very little ram
 
Browsers can take time quite a lot of RAM
 
i11
goes up to 11
 
2:54 PM
I already have 2 SSDs and 16 GB RAM, but I'm unable to get it to run on 1600MHz without getting strange stutters/freezes, I'll need to fiddle with timings and I don't trust myself to not screw that up xD
 
what about your vid card?
 
I agree with @Taisho
 
Even though it has an XMP profile for 1600MHz
 
games, videos, browser − main computer, everything else − separate machine under the table, no video card or ssd required
 
2:55 PM
@Frosteeze 970GTX
 
I only have like 4GB RAM at work, and since my work requires me to research stuffs on the web mostly, I keep getting slow down due to swap
 
@nhahtdh keep less tabs open
 
that cant be it then lol
 
Yeah xD
But I'm going home now :P
 
@ton.yeung no it's not
 
2:56 PM
I'm going to find out how to torrent on my NAS, so I can get that out of the way at least :P
Then I'll see what else I can do without running in the background :P
 
@ton.yeung ok I'd like to know what you have to manage on them
@AsadaShino try reinstalling windows if you haven't already − guaranteed performance boost from no crapware you're most certainly had installed
@ton.yeung transferring what? from where to where?
 
@Hakase I occasionally clean up tabs, but I don't normally realize that I have opened 10 tabs and I need to close them
 
@nhahtdh firefox?
 
Yeah
 
2:59 PM
try 64bit dev edition
seems faster to me
@ton.yeung but why?
ugh this is why you have problems man
just don't move stuff
it's ok where it is
probably
idk maybe your job is a stuff mover lol
 
I find it is a pain to manage all my external storage
Currently thinking of throwing all of them up to cloud
But it's > 5TB
 
guys you don't need external storage if you got space in your desktop towers
internal is fine
just use local network to access files on other machines
 
I don't have a stable desktop
Need to invest in a new one
 
oh shit time to go home
 
@iKlsR int add(int a, int b) { if (b == 0) { return a; } return 1 + add(a, b-1); }
 
3:10 PM
 
@Eric function add(a, b) { if (b == 0) { throw a; } try { add(a, b - 1) } catch (v) { throw v + 1 } }
 
@Eric What if b<0? It should be return b < 0 ? add(a, b+1) - 1 : 1 + add(a, b-1);
@nhahtdh "int" infers that we're not in JS :D
 
@Unihedro I know
 
if (b == 0) -> if (!b)
 
3:36 PM
@Unihedro Clearly if b < 0 you should be using subtract(a, -b)
 
ohhhh
me no recursion master
 
:D
Recurse all the things!
 
:D
 
Try-Catch-Throw instead of Return!
 
use goto instead of recursion
 
3:37 PM
Oh god
 
Why not all?
Try-Catch-Throw + Return + Goto while using recursion - the more the merrier
 
Is there any language that support all of them?
 
F#?
 
Lol, I'm surprise that there is a language at all
 
if anyone here thinks their computer could work faster, you're probably right and we can probably help you with that, so don't be shy to ask for advice
 
3:42 PM
Oh?
I've been uninstalling a lot of old software lately.
 
swap "computer" with "life" and "faster" with "better" and it still works :p
 
lol :D
 
@Unihedro you can probably get a better boost by reinstalling OS completely
 
... That's a brilliant idea.
 
int add(int a, int b) {
	try {
		int x = a/b;
	} catch (DivideByZeroException) {
		return a;
	}

	int addValue = 1;
	if (b < 0) {
		goto FixB;
	}
	DontFixB:
		return add(a, b - addValue) + addValue;

	FixB:
		addValue = -1;
		goto DontFixB;
}
 
3:43 PM
also make sure you have an ssd lol
 
@Unihedro
 
:D
I'm impressed!!
@Hakase yee
 
@ton.yeung looking forward
 
@Unihedro Good, cuz I almost killed myself before I finished xD
 
Oh noes :p
 
3:44 PM
why
I still might need to buy hardware if this just dies all of a sudden
 
Fact: A HDD dies.
 
I won't be looking for replacement parts since they're as expensive as the new ones
@Unihedro not soon enough
I still have my ancient seagate hdd from 2003 or whenever, it's running ok in the old tower
idk I've read about terrible seagate failures but they all work great for me
 
Should one reformat them?
 
hdds?
depends
 
3:48 PM
if you know you absolutely will not have small files on your external drive, largest cluster size could get you a bit of extra space
small files eat up all the space on drives with huge clusters tho
and you shouldn't be storing them as separate files probably
unless you have no power over that
for example if it's an installation of some app
system drives should have the default 4k cluster size coz lots of small files and I think ssds have some optimizations towards that specific size, not sure tho
just not worth it most of the time
 
Ok!
 
@Eric Can you throw anything, not just Exception?
 
1
Q: Are some translated anime needlessly subbed twice?

Toshinou KyoukoScenario: A streaming site has streaming rights to an anime and then a different company picks up the title for DVD/Bluray viewing. Question: Does the second company have to re-subtitle the show even though that work has been done already by the streaming company? Because I assume the subtitl...

 
@nhahtdh Depends on the language.
In Java, no.
JavaScript, I think so... not totally sure.
 
@nhahtdh in C, Pascal and JS
 
3:52 PM
@Eric I have some running examples in JS up there
@Unihedro C? I don't think there is syntax for that
 
@ToshinouKyouko Not sure what you mean by "Do companies sell them on my be?"
 
@Eric We can totally workaround by putting the number in the exception message
 
@nhahtdh Yes, and then string parsing the message.
 
@nhahtdh You can throw a pointer of an int, for example.
 
Integer.valueOf(e.getMessage())
 
3:54 PM
@Unihedro How?
 
catch (int* s) { cout << *s << endl; delete s; }
 
@Unihedro That looks C++
 
Oh...
 
@Eric error?
 
@Hakase Syntax error
 
3:55 PM
@Hakase It has to extend Throwable.
Otherwise it's a compile-time error, yeah.
 
I'm not sure what happened, but I'm ready to discuss something entirely different now :p
 
@Eric or Exception :p
 
@Unihedro Exception extends Throwable :P
 
@Eric typo, just fixed it there
 
!
I thought it was the other way...
 
3:56 PM
@ToshinouKyouko kk
@Unihedro Nope
 
I don't like java
it usually means I'm in a bank at work and nothing is working most of the time
 

« first day (853 days earlier)      last day (3323 days later) »