Skip to content

Instantly share code, notes, and snippets.

==25222== Conditional jump or move depends on uninitialised value(s)
==25222== at 0x50F006: conservatively_pin_objects_from (sgen-gc.c:1476)
==25222== by 0x50F2BD: scan_thread_data (sgen-gc.c:4022)
==25222== by 0x518027: collect_nursery (sgen-gc.c:2566)
==25222== by 0x518C6A: sgen_perform_collection (sgen-gc.c:3445)
==25222== by 0x50B486: mono_gc_alloc_obj_nolock (sgen-alloc.c:288)
==25222== by 0x50B6D7: mono_gc_alloc_vector (sgen-alloc.c:491)
==25222== by 0x4E4255: mono_array_new_specific (object.c:4920)
==25222== by 0x40C1FE6: ???
==25222== by 0x5C5D21F: ???
@gregoryyoung
gregoryyoung / gist:9669776
Created March 20, 2014 17:50
should follow CQS :(
var value = SomeCall();
//value never used can I remove call to SomeCall()?
@gregoryyoung
gregoryyoung / EmittedStream.cs
Created March 21, 2014 13:54
hmm lots of comments
private bool DetectConcurrencyViolations(CheckpointTag expectedTag)
{
//NOTE: the comment below is not longer actual
// Keeping it for reference only
// We do back-read all the streams when loading state, so we know exactly which version to expect
//TODO: if the following statement is about event order stream - let write null event into this stream
//NOTE: the following condition is only meant to detect concurrency violations when
// another instance of the projection (running in the another node etc) has been writing to
// the same stream. However, the expected tag sometimes can be greater than last actually written tag
@gregoryyoung
gregoryyoung / gist:9780071
Created March 26, 2014 10:02
someone just showed me an old TODO
//TODO GFY
//this is a really really stupid way of doing this and it only works properly if
//the moons align correctly in the 7th slot of jupiter on a tuesday when mercury
//is rising. However it sort of works right now (unless you have proxies/dns/other
//problems.
Greg@HOBGOBLIN ~/src/EventStore (idemp2)
$ git checkout dev
error: unable to create file src/EventStore/EventStore.Core/Services/Transport/H
ttp/Authentication/AnonymousHttpAuthenticationProvider.cs (Permission denied)
error: unable to create file src/EventStore/EventStore.Core/Services/Transport/H
ttp/Configure.cs (Permission denied)
error: unable to create file src/EventStore/EventStore.Projections.Core.Tests/Se
rvices/parallel_processing_load_balancer/when_creating.cs (Permission denied)
error: unable to create file src/EventStore/EventStore.Web.Playground/Properties
/AssemblyInfo.cs (Permission denied)
@gregoryyoung
gregoryyoung / gist:10449466
Created April 11, 2014 08:19
slowness example.
using System;
using System.Net;
using System.Text;
using System.Linq;
using System.Diagnostics;
using System.Collections.Generic;
using Newtonsoft.Json;
using EventStore.ClientAPI;
namespace Foo {
using System;
using System.Net;
using System.Text;
using System.Linq;
using System.Diagnostics;
using System.Collections.Generic;
using Newtonsoft.Json;
using EventStore.ClientAPI;
namespace Foo {
@gregoryyoung
gregoryyoung / gist:10451703
Created April 11, 2014 09:00
reuse connection
using System;
using System.Net;
using System.Text;
using System.Linq;
using System.Diagnostics;
using System.Collections.Generic;
using Newtonsoft.Json;
using EventStore.ClientAPI;
namespace Foo {
@gregoryyoung
gregoryyoung / gist:10535171
Created April 12, 2014 13:13
a bit on conferences
I think a bit is being missed in twitter largely due to space. I think what Hadi is trying to point out is the priorities associated.
Let's propose for a moment that we are a conference of 1000 people @ $400 each with 80 speakers (some will be local etc). From the rates discussed let's calculate quickly what T&E would come to 80*300 + 160*2*80 so 620 each over existing. If we were to do a quick calculation that comes out to roughly 50k.
I believe what Hadi was pointing out is that the conference has prioritized lower prices for attendees over paying T&E for speakers amortized over 1000 people the difference is rather insignificant from a ticket price POV ($50/ticket). Even if the numbers were a bit lower for attendees and the count lower with higher T&E it could be said that a 20% price increase could rather easily cover it (and 25% would double the hypothetical numbers above)
If this is not done there is a rather significant "donation" being made to a conference from the speakers. Not many speakers are wi
@gregoryyoung
gregoryyoung / gist:10595137
Created April 13, 2014 18:06
Event Store full atom reads
greg@orc:~/src/evhttp-sharp$ ab -k -n 5000000 -c 200 http://127.0.0.1:2113/streams/test-stream
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)
Completed 500000 requests
Completed 1000000 requests
Completed 1500000 requests
Completed 2000000 requests