01:46
dkubb has quit [Quit: Leaving...]
02:25
dkubb has joined #rom-rb
04:31
postmodern has joined #rom-rb
04:48
dkubb has quit [Quit: Leaving...]
05:26
dkubb has joined #rom-rb
05:41
mbj has joined #rom-rb
05:41
mbj_ has joined #rom-rb
05:48
mbj_ has quit [Ping timeout: 264 seconds]
05:48
mbj has quit [Ping timeout: 248 seconds]
06:44
jdsiegel has quit [Read error: Operation timed out]
06:47
jdsiegel has joined #rom-rb
07:51
CraigBuchek has quit [Quit: CraigBuchek]
08:02
mkristian has joined #rom-rb
08:23
knowtheory has quit [Ping timeout: 264 seconds]
08:33
dkubb has joined #rom-rb
08:57
kleech has joined #rom-rb
09:00
postmodern has quit [Quit: Leaving]
09:02
postmodern has joined #rom-rb
09:32
mbj has joined #rom-rb
09:35
skade has joined #rom-rb
09:42
mbj has quit [Ping timeout: 256 seconds]
09:45
franckverrot has joined #rom-rb
10:03
knowtheory has joined #rom-rb
11:47
<
mkristian >
hi, virtus does not support ruby 1.8 anymore - I am just about to move from 0.5.X to 1.0.0.betaX
11:49
mbj has joined #rom-rb
11:55
mbj has quit [Ping timeout: 245 seconds]
11:55
cored has joined #rom-rb
12:01
zekefast has joined #rom-rb
12:21
skade has quit [Quit: Computer has gone to sleep.]
12:43
skade has joined #rom-rb
12:47
skade has quit [Ping timeout: 245 seconds]
12:57
breakingthings has joined #rom-rb
13:14
CraigBuchek has joined #rom-rb
13:44
postmodern has quit [Quit: Leaving]
13:48
cored has quit [Ping timeout: 272 seconds]
13:57
mkristian has quit [Ping timeout: 268 seconds]
14:04
cored has joined #rom-rb
14:20
mkristian has joined #rom-rb
14:36
bf4 has quit [Quit: leaving]
14:37
skade has joined #rom-rb
15:01
irclogger__ has quit [Remote host closed the connection]
15:29
zekefast has quit [Ping timeout: 245 seconds]
15:30
zekefast has joined #rom-rb
15:45
kleech has quit [Remote host closed the connection]
15:51
<
dkubb >
mkristian: right, virtus support for 1.8 was removed when it was EOL'd
15:52
<
mkristian >
dkubb, ok - time to accept the fact ;)
15:52
<
dkubb >
mkristian: yeah I was a hold out for 1.8 support too ;)
15:55
kleech has joined #rom-rb
16:12
irclogger__ has joined #rom-rb
16:16
irclogger__ has quit [Remote host closed the connection]
16:16
irclogger__ has joined #rom-rb
16:20
mkristian has quit [Ping timeout: 248 seconds]
16:40
skade has quit [Quit: Computer has gone to sleep.]
16:42
skade has joined #rom-rb
16:43
skade has quit [Client Quit]
16:44
breakingthings has quit []
16:51
breakingthings has joined #rom-rb
16:52
knowtheory has quit [Quit: Computer has gone to sleep]
16:52
knowtheory has joined #rom-rb
16:57
knowtheory has quit [Ping timeout: 240 seconds]
17:11
knowtheory has joined #rom-rb
17:24
mkristian has joined #rom-rb
17:27
kleech has quit [Remote host closed the connection]
17:30
cored has quit [Ping timeout: 245 seconds]
17:31
cored has joined #rom-rb
17:31
cored has joined #rom-rb
17:37
bf4 has joined #rom-rb
17:37
bf4 has quit [Client Quit]
17:37
bf4 has joined #rom-rb
17:57
mkristian has quit [Ping timeout: 260 seconds]
18:05
revans has joined #rom-rb
18:36
mbj has joined #rom-rb
18:40
knowtheory has quit [Read error: Operation timed out]
18:49
zekefast has quit [Quit: Leaving.]
18:49
revans has quit [Quit: revans]
18:51
knowtheory has joined #rom-rb
18:53
<
dkubb >
mbj: good morning
18:53
<
mbj >
dkubb: I'm "back" ;)
18:53
<
dkubb >
mbj: how is your daughter doing?
18:53
<
mbj >
dkubb: Back in sense of "in deterministic time management" ;)
18:54
<
mbj >
dkubb: Much better!
18:54
<
dkubb >
mbj: good to hear
18:55
<
mbj >
dkubb: She got a vacacination days before our flight, and once we arrived some of the side-effects occured :(
18:56
<
dkubb >
I've had flu shots and then not felt very good for a while
18:57
<
dkubb >
I try to get that stuff on Friday so I can recover over the weekend
18:57
<
mbj >
dkubb: Kenya is a nice location for coding, apart internet problems I plan to fix soon.
18:57
<
mbj >
dkubb: They have a very good WiMax network, I could enjoy it for exactly 30min.
18:58
<
mbj >
dkubb: Tomorrow I'll buy a new modem (my child killed the one I bought today via accident)
18:59
kleech has joined #rom-rb
19:00
<
mbj >
dkubb: I'm sitting in the 3rd floor of a nice appartment, staring into the (now dark) wilderness of kenya.
19:01
<
mbj >
dkubb: And 500m in line of sight there is a microwave tower for that wifi ;)
19:01
<
mbj >
dkubb: s/wifi/Wimax/
19:04
<
mbj >
dkubb: BTW I totally forgot: Wish you the best for your health!
19:06
<
dkubb >
mbj: thanks, you too!
19:11
<
mbj >
dkubb: BTW that xspec spec thing I'm playing around with will work soon.
19:11
<
dkubb >
mbj: what kinds of properties will it have?
19:12
<
mbj >
dkubb: 1rst a good domain model for tests ;)
19:12
<
mbj >
dkubb: Not a BIG-FAT instance_exec(&@some_stored_block) implementation like rspec.
19:12
<
mbj >
dkubb: An rspec like DSL
19:13
<
mbj >
dkubb: immutable world! (can be reused in mutant, no need to fork for that reason)
19:13
<
dkubb >
mbj: threaded by default?
19:14
<
mbj >
dkubb: So mutant could "scan" the mutated code for global state writes and dont fork for these cases.
19:14
<
mbj >
dkubb: Currently not threaded, but would be easy to add.
19:14
<
mbj >
dkubb: It has a good domain model, so it is easy to add concurrency of any kind ;)
19:15
<
dkubb >
yeah, I think if it's done as soon as possible and built from the ground up to work well on rbx and jruby that would be nice
19:16
<
mbj >
dkubb: Most impotantly that domain model (the object layer in my xspec thing) has cood support for invariant import.
19:16
<
mbj >
Dunnow how I'll present this in the DSL.
19:16
<
mbj >
Currently working on a solid reporter, once it works I'll push in repo.
19:20
knowtheory has quit [Ping timeout: 260 seconds]
19:21
cored has quit [Ping timeout: 252 seconds]
19:25
knowtheory has joined #rom-rb
19:29
<
mbj >
dkubb: Ideally I can write an rspec compatible dsl, load all invariants
19:29
<
dkubb >
as far as DSL interfaces, I much prefer Rspec 3's expect() and allow() syntax. there's probably much less magic involved
19:29
<
mbj >
dkubb: And dump in my spec format ;)
19:29
<
dkubb >
there are serious concurrency issues in rspec though. even in rspec-mocks
19:29
<
dkubb >
you basically cannot use a mock in threaded code
19:30
<
dkubb >
because it sets some ivars lazily on first use
19:30
<
mbj >
Yeah, they do to much with global state.
19:30
<
dkubb >
nice immutable, fully formed objects will be nice
19:30
<
mbj >
Get the foundation correct
19:30
<
dkubb >
if you have to do memoization, then use Adamantium's memoize, which should be thread safe
19:30
<
dkubb >
since it is based on ThreadSafe::Hash
19:32
<
dkubb >
I think it's slightly off, I wouldnt want to use objects exactly that way, but I think it could be done with immutable models
19:32
zekefast has joined #rom-rb
19:32
<
dkubb >
only when you have command methods that change state you return a new model instance
19:32
<
mbj >
I plany to do "only" immutable models.
19:32
<
dkubb >
and when you tell the ROM session to update you can give it the original and new object
19:32
<
mbj >
With dirty detection, via comparing dumped state.
19:33
<
dkubb >
then you have the model responsible for state and behaviour, and ROM responsible for persistence, which is inline with nice OO principles
19:33
<
mbj >
You dont need the original if rom-session knows the dumped (db side representation) - state of the domain object.
19:33
<
dkubb >
you could also do it where the immutable object knows the original state and can return that when asked.. so the original "key" can be known by ROM
19:33
<
mbj >
rom-session only needs to know how to identify that dumped state.
19:34
<
mbj >
dkubb: That was my mbj-session ;)
19:34
<
mbj >
dkubb: EXACTLY that.
19:34
<
dkubb >
if the state changed and the key changed you'd need to know the original
19:34
<
dkubb >
normally the key doesn't change if you use a surrogate identifier, but if your identifier is based on natural information (like a natural key) then you need to track original state
19:34
<
dkubb >
you need to track it somewhere
19:34
<
mbj >
dkubb: okay. But I expected the key does not change.
19:35
<
mbj >
You need 2 keys, a db-side and a "session-side".
19:35
<
dkubb >
yeah, most of the time it doesn't. we
*could* make it a requiremewnt
19:35
<
mbj >
Normally these 2 can be the same.
19:36
<
dkubb >
I'm not a huge fan of an object
*having* to carry around anything more than it's natural data
19:36
<
mbj >
You ever saw the interface of mbj-session?
19:37
<
mbj >
I'll finish my non session work, than come back to session and make it work again for my use case.
19:37
<
mbj >
If it works with immutable objects it can also work with mutable ones.
19:37
<
dkubb >
yeah I've seen it, but I don't remember specifics
19:37
<
dkubb >
I just remember it was simple and clean
19:38
<
mbj >
session = somehow_build_it
19:38
<
mbj >
session.sync(some_object_that_wasnt_known_before_but_is_mapplable)
19:39
<
mbj >
# would be translated to an insert
19:39
<
mbj >
session.delete(some_known_object)
19:39
<
mbj >
# would be translated to an delete
19:40
<
mbj >
object = session.load(ModelClass, some_db_side_representation) # load would be called by rom-relation
19:40
<
mbj >
new_object = object.mutated_copy(some_attributes)
19:40
<
mbj >
session.sync(new_object) # would be translated to an update.
19:40
<
mbj >
The update operation was emitted as Operator::Update, where #old_dump and #new_dump are available.
19:41
<
mbj >
So the driver (axiom) would get full old and new tuples, so "exact" updates could be generated.
19:45
<
dkubb >
mbj: this works when the identifier does not change, right?
19:45
<
dkubb >
we could possibly have session#sync(object, original_object = object) too
19:45
<
dkubb >
then you can specify the original if the identifier changes
19:46
<
mbj >
dkubb: Would have been easy to add!
19:49
zekefast has quit [Quit: Leaving.]
19:51
<
dkubb >
we should do an evaluation of mbj-session and rom-session side by side
19:52
mbj has quit [Ping timeout: 272 seconds]
19:53
cored has joined #rom-rb
19:53
cored has quit [Changing host]
19:53
cored has joined #rom-rb
20:24
zekefast has joined #rom-rb
20:49
lgierth has joined #rom-rb
20:56
cored has quit [Ping timeout: 252 seconds]
21:09
kleech has quit [Remote host closed the connection]
21:24
kleech has joined #rom-rb
21:44
breakingthings has quit []
21:52
knowtheory has quit [Ping timeout: 260 seconds]
22:05
skade has joined #rom-rb
22:19
bf4 has quit [Read error: Connection reset by peer]
22:20
bf4 has joined #rom-rb
22:21
knowtheory has joined #rom-rb
22:49
irclogger__ has quit [Ping timeout: 252 seconds]
22:50
bf4 has quit [Ping timeout: 240 seconds]
23:00
postmodern has joined #rom-rb
23:17
irclogger__ has joined #rom-rb
23:17
bf4 has joined #rom-rb
23:21
irclogger__ has quit [Ping timeout: 260 seconds]
23:22
bf4 has quit [Ping timeout: 272 seconds]
23:25
kleech has quit [Remote host closed the connection]
23:25
skade has quit [Quit: Computer has gone to sleep.]