Time |
S |
Nick |
Message |
01:04 |
|
|
rektide joined ##javaee |
01:11 |
|
SoniEx2 |
Quest? |
01:17 |
|
|
kobain_ joined ##javaee |
01:18 |
|
|
MegaMatt joined ##javaee |
01:25 |
|
shoky |
? |
02:12 |
|
|
SLovenberg joined ##javaee |
03:06 |
|
|
SoniEx joined ##javaee |
03:33 |
|
|
Right_Turn joined ##javaee |
03:33 |
|
Right_Turn |
hello |
03:33 |
|
Right_Turn |
i'm cem_ |
03:37 |
|
Right_Turn |
how to use version control ? |
03:38 |
|
Right_Turn |
anyone |
04:03 |
|
shoky |
#git |
04:50 |
|
Right_Turn |
git is confusing |
04:50 |
|
Right_Turn |
pdurbin: ? |
05:19 |
|
|
Right_Turn left ##javaee |
05:21 |
|
|
cem_ joined ##javaee |
05:21 |
|
cem_ |
konichi wa |
05:25 |
|
cem_ |
Quest san what do you use ? |
05:36 |
|
bitwize |
cem_: We can't teach you how to use version control |
05:38 |
|
bitwize |
If you have SPECIFIC questions about doing something specific with VC, go to e.g., #git for Git |
06:00 |
|
cem_ |
bitwize: :/ |
06:03 |
|
cem_ |
We can't teach you how to use version control lol |
06:09 |
|
cem_ |
greetings to bitwize |
06:24 |
|
|
kobain joined ##javaee |
07:00 |
|
|
fallzz left ##javaee |
08:20 |
|
|
knoppix joined ##javaee |
10:24 |
|
|
SoniEx joined ##javaee |
11:33 |
|
|
callMeBaby joined ##javaee |
12:08 |
|
|
Quest joined ##javaee |
13:23 |
|
|
drspockbr joined ##javaee |
13:56 |
|
|
MegaMatt joined ##javaee |
14:04 |
|
|
MegaMatt joined ##javaee |
14:15 |
|
|
MegaMatt joined ##javaee |
14:19 |
|
|
kobain joined ##javaee |
14:24 |
|
SoniEx2 |
So I need some help: https://github.com/SoniEx2/TheModernClassicGame/commit/2d1c8c5ba7b124679cfcea1c70ee26f222fa0652 |
14:26 |
|
SoniEx2 |
(ps: I don't really know wtf I'm doing with the threads) |
14:32 |
|
callMeBaby |
interesting |
14:32 |
|
callMeBaby |
whati is this? |
14:34 |
|
SoniEx2 |
it's an YM2612 emulator |
14:48 |
|
SoniEx2 |
hmm... I may have messed it up :P |
14:55 |
|
SoniEx2 |
btw, https://github.com/SoniEx2/TheModernClassicGame/blob/master/src/com/github/soniex2/tmcg/ym2612/YM2612.java#L61 |
14:56 |
|
SoniEx2 |
as far as I know a switch block is basically if (x == 1) { } else if (x == 2) { } etc |
15:03 |
|
SoniEx2 |
(here's the deal try to avoid switch blocks, use c-like vector tables, they're faster as far as I know) |
16:08 |
|
|
SoniEx2 joined ##javaee |
18:01 |
|
sess |
SoniEx2: avoiding switch blocks for performance reasons sounds like a bad idea |
18:06 |
|
SoniEx2 |
sess: I don't think switch blocks compile to vector tables... |
18:06 |
|
sess |
i did not say they did |
18:07 |
|
sess |
that said, i did not fully quite understand what you meant but it sounded like you were avoidiung switch blocks |
18:10 |
|
SoniEx2 |
I'm pretty sure that for stuff like 256 different cases, vector tables are actually faster than switch blocks |
18:11 |
|
shoky |
:\ |
18:11 |
|
sess |
did not say they weren't |
18:11 |
|
sess |
just saying to avoid premature optimization |
18:11 |
|
sess |
especially if it makes the code more ugly |
18:11 |
|
SoniEx2 |
it's not exactly premature optimization... |
18:13 |
|
sess |
I wouldnt use switch statements for 256 cases, but even if you did, it does not take many micro seconds |
18:14 |
|
|
v3d joined ##javaee |
18:14 |
|
|
callMeBaby joined ##javaee |
18:42 |
|
|
MegaMatt joined ##javaee |
18:43 |
|
|
rov joined ##javaee |
18:52 |
|
|
rov left ##javaee |
19:00 |
|
|
sfisque joined ##javaee |
19:02 |
|
SoniEx2 |
actually int switches are ok... |
19:02 |
|
SoniEx2 |
string switches tho... yeah :P |
19:02 |
|
SoniEx2 |
pretty sure string switches are slow... |
19:03 |
|
sfisque |
using strings for any dispatch other than via a hashmap/table is going to be non-performant in a scalable way |
19:04 |
|
sfisque |
string compare = O(n), numeric comparison = O( 1 ) |
19:06 |
|
SoniEx2 |
yeah but try to avoid stuff like switch(i) { case -100: case 0: case 100: } |
19:06 |
|
sess |
still you can compare 1 million strings in the time it takes to do a small DB call |
19:06 |
|
SoniEx2 |
because that's slower than case 0: case 1: etc |
19:07 |
|
sess |
so performance is not an issue in 99% of applications |
19:07 |
|
SoniEx2 |
(case 0: case 1: etc compiles to a vector table it seems) |
19:08 |
|
sfisque |
sess, not really. assuming there is at the very least 1gbps between the server and db, you generally do not want to do in the server what can be done at the db more efficiently |
19:08 |
|
SoniEx2 |
(case -100: case 0: case 100: would compare for every single value and... yeah...) |
19:12 |
|
|
kobain joined ##javaee |
19:23 |
|
|
drspockbr joined ##javaee |
21:33 |
|
|
Quest joined ##javaee |
21:34 |
|
|
acuzio joined ##javaee |
21:43 |
|
Quest |
looks like struts 2 is dead. no one in #struts either |
22:06 |
|
Quest |
http://stackoverflow.com/questions/20036504/struts-2-and-business-objects ? |
22:33 |
|
Quest |
Quest test |
22:33 |
|
Quest |
Quest test |