20,802 reputation
14084
bio website thehungersite.com
location United Kingdom
age 46
visits member for 3 years, 7 months
seen yesterday
experienced software engineer with many years in the industry, mostly c++ for large-scale, high-reliability systems.

Oct
2
comment When does it make sense to compile my own language to C code first?
@RobertHarvey no, I mean C code. In the OPs case, this is an Intermediate Language halfway between his own high-level language and machine code. I put it in quotes to try and convey this idea that its not IL as used by many people (ie Microsoft's .NET IL for example)
Oct
2
comment When does it make sense to compile my own language to C code first?
@emodendroket Microsoft is using their C++ compiler backend to compile C# IL into machine code themselves now. The OP would be advised to skip the middleman.
Oct
2
answered When does it make sense to compile my own language to C code first?
Oct
1
comment Context Switching behavior?
my point was that thread 1 will run for 10ms, and then be interrupted and thread 2 runs for 10ms. However, in reality, thread 2 will be blocked and so thread 1 will not need to be switched at all. The difference is in the time taken to switch between threads, if you only run t1, there will be no delays due to switching.
Oct
1
comment Context Switching behavior?
Every time the CPU changes from running one thread to a different one, there will be a context switch. If you have 1000 threads all trying to run at the same time, there will be more switches as the scheduler tries to satisfy each one of their requirement for CPU time. With 2 threads, the same will happen. But in the real world, one of the 2 threads will be in a blocked state and so the thread 1 will never be interrupted and generate no context switches.
Oct
1
answered Context Switching behavior?
Sep
28
comment The need for header file when including libraries?
you need the header for the compile stage; and the library during the link stage.
Sep
25
comment Is Testing a necessary part of Agile methodology?
when customers stop filing bug reports? :-)
Sep
24
comment Where to audit a codebase for dangerous code use
I really doubt a unit test would have picked this up, not unless it handles the insertion of data as well as checks the order. There is no easy way to est code properly but a better set of integration tests, like how things used to be done the old-fashioned boring ways.
Sep
23
awarded  Nice Answer
Sep
22
comment Why don't developers make installation automatic on windows?
Installer already offer the "just install it" option along with a 'custom' option that I always use. I don't need a useless search toolbar or AV program being installed with any program, no matter how unrelated they are.
Sep
22
answered Where to audit a codebase for dangerous code use
Sep
22
comment How to deploy software automatically over SSH?
They don't make it easy to find the FOSS version of Puppet, which is a shame as CentOS never exactly hurt RedHat sales. If its not already in your distro's repositories, then you can get it from PuppetLab's own.
Sep
19
answered LDAP users synchronization
Sep
17
answered Infinite while loop CPU usage
Sep
17
answered Is a mocking framework useful if I'm unit testing a repository/database?
Sep
16
answered Having unwanted bits in version control history
Sep
12
answered Test-Driven Design is not Unit Testing
Sep
12
awarded  Enlightened
Sep
12
awarded  Nice Answer