IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.61 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-06-01
[01:00]<su2zgzzc>trying to use PInvoke is just not worth it. My final option is to parse their log extraction output
[01:01]<mjzymygo>yeh... but it's performance still sucks on high-load real-time
[01:01]<mjzymygo>the systems I have seen using it were forced into a polling model
[01:02]<su2zgzzc>maybe I could just retro and link the c++ and the c# project together
[01:02]<mjzymygo>subanark... three options: New IDL, PInvoke, re-write it c#. Thats it
[01:02]<mjzymygo>and those polling systems relied on C++ implementations on extremely high load area's.
[01:03]<mjzymygo>Kog: what are the potential client connection loads?
[01:04]<sdnffdxdlld>I just got offered cake and prezzie lol ... and almost in those words too :P
[01:04]<kjr>Moridin8: it's a till....not too high
[01:04]<mjzymygo>smippy: =P~~~
[01:04]<kjr>we only have 2 tills
[01:04]<mjzymygo>Kog... only 2?
[01:04]<kjr>most of our business is online
[01:05]<mrvrfj>hi could somebody help me find some code or site where i could learn more about full text indexing
[01:05]<kjr>we'll probably end up with less than 10 tills all told
[01:05]<kjr>Matalo: you know this is a C# channel, right?
[01:05]<mjzymygo>Kog: how many units per minute you expecting?
[01:05]<mjzymygo>(through the system?)
[01:05]<kjr>Moridin8: besides the g-unit?
[01:05]<kjr>Moridin8: define "units"
[01:05]<mjzymygo>an item of stock
[01:05]<mrvrfj>Kog: hmm ok i am on wrong channel :))) sorry
[01:06]<wyfaj>hm.
[01:06]<kjr>Moridin8: not too many I'd gather
[01:06]<kjr>Moridin8: an average order is somewhere along 3-5 items
[01:06]<mjzymygo>cool.
[01:06]<mjzymygo>so why java?
[01:06]<mjzymygo>hi wilco... hows life?
[01:06]<kjr>Moridin8: huh? who's writing in Java?
[01:07]<kjr>the client is going to probably be in wx
[01:07]<kjr>(C++)
[01:07]<wyfaj>subanark: sorry, not followed the conv exactly... but looks like you want to interop with something from .net?
[01:07]<mjzymygo>kog: =/ I think I got misdirected earlier... it's 11pm here and it's showing. *grins*
[01:07]<wyfaj>Moridin8: busy and good, yours?
[01:07]<sdnffdxdlld>ahhh wilco ^_^ I have a question for you :P
[01:07]<kjr>Moridin8: oh shit, 11pm? your parents let you stay up so late?
[01:07]<kjr>SARCASM
[01:08]<wyfaj>be quick before i jump in bed
[01:08]<kjr>wilco: be careful who you land on
[01:08]<mjzymygo>wilco: good.. managed to hand over a horrid project I fixed on time to people who will probably just fuck it up again.
[01:08]<mjzymygo>=O)
[01:08]<wyfaj>heh
[01:08]<mjzymygo>kog: well... my wife might come and beat me up in a few minutes
[01:08]<wyfaj>you mean the rockstars on thedailywtf.com?:)
[01:08]<kjr>Moridin8: pfft
[01:08]<sdnffdxdlld>hehe ok is there any strongly typed equivilent of FieldInfo.SetValue/GetValue? and if not is there anyway i can find the code for how to impliment my own? it seems hidden in reflector
[01:09]<wyfaj>smellyhippy: nope
[01:09]<sdnffdxdlld>bleh
[01:09]<mjzymygo>wilco: any thoughts as to why not?
[01:09]<wyfaj>1 thing you could do is to generate a (dynamic) method on the fly which does stuff in a strongly typed manner... but that seems rather silly
[01:10]<kjr>parametric polymorphism!
[01:10]<sdnffdxdlld>aye I may end up generating whole classes on startup or something hehe
[01:10]<sdnffdxdlld>but for now i'll stick with the boxing
[01:10]<wyfaj>what do you need it for?
[01:10]<mjzymygo>smippy: that would be my choice.
[01:10]<sdnffdxdlld>setting the value of a field :P
[01:10]<mjzymygo>wilco: any thoughts as to why there isn't a strongly typed version?
[01:11]<mjzymygo>wilco: or ability to create one using generics?
[01:12]<sdnffdxdlld>the only other solution i can see is having some method hard coded into each class that handles strings and a strongly typed value
[01:12]<wyfaj>not really, although often when you already know the type you can statically bind against the actual member instead of using reflection all together
[01:12]<sdnffdxdlld>but thats just ugly
[01:13]<wyfaj>-although
[01:13]<sdnffdxdlld>I know the base type ... but its the fields in the subclasses i'm setting
[01:13]<sdnffdxdlld>and they arnt fixed
[01:13]<wyfaj>why do you need to set them through reflection?
[01:13]<sdnffdxdlld>because i dont want to hand code it 15 billion times :P
[01:13]<mjzymygo>smippy: *LOL*
[01:13]<wyfaj>code generation?
[01:14]<sdnffdxdlld>I can do code generation but why spend the time doing that when i could just use a generic version of that method
[01:14]<mjzymygo>wilco: ever heard of 'KISS'
[01:14]<mjzymygo>?
[01:14]<wyfaj>yup.
[01:14]<mjzymygo>thats why no code-conversion
[01:14]<sdnffdxdlld>code generation is a future plan but this would negate its need
[01:14]<mjzymygo>(code generation)
[01:15]<wyfaj>smellyhippy: i dont see why all of a sudden with a generic version of setvalue/etc you would save lines of codes really.
[01:15]<mjzymygo>wilco: It's to do with performance
[01:15]<wyfaj>got any example to give me some more context?
[01:15]<sdnffdxdlld>aye, i'd rather have no boxing there than boxing
[01:15]<mjzymygo>Boxing value types sucks
[01:15]<sdnffdxdlld>since that line of code is going to be called *alot*
[01:16]<sdnffdxdlld>its to insert values from a datareader into business objects
[01:16]<wyfaj>no, i mean, why would you want something like SetValue<string>("Foo", "bar") instead of writing Foo = "bar" in the first place?
[01:16]<sdnffdxdlld>now i can strongly retrive the value from the data reader but not strongly insert it into the business objetc without code generation or hand coding atm
[01:16]<mjzymygo>wilco: because the super class won't know what fields the sub class has unless it uses reflection?
[01:17]<afnwyt>how do i set a default value for a parameter of a method
[01:17]<wyfaj>um, this sounds like a design issue more than anything else
[01:17]<sdnffdxdlld>because I how do I know what xxx is in myCLass.xxx?
[01:17]<mjzymygo>wilco: oh?
[01:17]<wyfaj>if a superclass needs to know about details of a subclass..... I think you're really going about it the wrong way
[01:17]<mjzymygo>wilco: then your binning most ORM implementations in a shot
[01:18]<wyfaj>a lot of O/R mappers i've seen sucked :)
[01:18]<wyfaj>you should check out llblgen pro if you want a decent o/r mapper :)
[01:18]<sdnffdxdlld>how should i set the value of a field when the field is specific to a single sub classs?
[01:18]<mjzymygo>=O) yeh... a lot of ORM's do suck
[01:18]<wyfaj>anyway... lets ignore the design issue for a second and go 1 step back for just a sec.....
[01:18]<wyfaj>and imagine there is a SetValue<T> version...
[01:19]<sdnffdxdlld>hey no if my design sucks tell me how to do it better :P







