Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chrisb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
chrisb
15y ago
This will also happen in Cil2Js. Any .NET library method (including system libraries) that is implemented as CIL can be converted directly to JS. In mscorlib however, there are many methods that are implemented directly by the .NET runtime;
62.
▲
by
chrisb
15y ago
outer will be 2 A closure is created for the anonymous function, allowing access (by reference) to the non-local variables in the containing method.
63.
▲
by
chrisb
15y ago
Coincidently, I'm currently creating a similar project: https://github.com/chrisdunelm/Cil2Js This is absolutely not yet ready for real use, but can convert a sub-set of CIL to JavaScript and is fully open source :) Update: il2js and Cil2
64.
▲
by
chrisb
15y ago
IPCC AR4 models all listed with lots of information and links (although some now dead): http://www-pcmdi.llnl.gov/ipcc/model_documentation/ipcc_mode... For example, the three models developed by NASA: http://data.giss.nasa.gov/modelE/ar4
65.
▲
by
chrisb
15y ago
Minor point, but tidal sources are also not solar-derived. And an advantage of tidal compared to most (all?) other renewables is that it is completely predictable. There are downsides, especially to do with ecological effects/damage during
66.
▲
by
chrisb
15y ago
In a slightly similar vein, you might enjoy looking at my Dot Net Anywhere project: https://github.com/chrisdunelm/DotNetAnywhere/tree/master/dn... (or http://www.dotnetanywhere.org for an easy to use zip download that will load and com
67.
▲
HadCRUT3: Complete land surface temperature record (except Poland) now available
(metoffice.gov.uk)
2 points
by
chrisb
15y ago
|
1 comments
68.
▲
by
chrisb
15y ago
Thanks :)
69.
▲
by
chrisb
15y ago
Not quite what you are asking for, but I've recently started using the Chirpy VS add-in (chirpy.codeplex.com). It comiles CoffeeScript on save in VS, producing one readable and one minified js version. It also handles .less, but I haven't u
70.
▲
Show HN: Weekend project - VS2010 CoffeeScript syntax highlighting
(github.com)
39 points
by
chrisb
15y ago
|
8 comments
71.
▲
by
chrisb
15y ago
"A singer"? That's not just "a singer". It's Freddie Mercury himself.
72.
▲
by
chrisb
15y ago
Based in SF, application deadline is this Sunday. You get $25000 for 3-10%
73.
▲
GreenStart - SF Startup accelerator for cleantech - deadline Sunday
(greenstart.com)
2 points
by
chrisb
15y ago
|
1 comments
74.
▲
Ask HN: London meetup - anyone interested in environmental startups?
1 points
by
chrisb
15y ago
|
1 comments
75.
▲
by
chrisb
15y ago
Putting the memory and CPU into standby was done by setting/clearing variout bits and various control registers (memory mapped). The code to do this was in a loop that executed twice. A CPU register set to zero the first time round and set
76.
▲
by
chrisb
15y ago
About 8 years ago I worked on porting NetBSD to a custom MIPS platform. Most of the kernel work I did was in C, but just two things had to be done in assembler: 1. Putting the CPU into 'idle' mode when no processing needed doing. 2. Putting
77.
▲
by
chrisb
15y ago
The query speed may be the same (I don't know if this is true or not), but fetching the data from disk and returning it over a network will certainly be slower, especially if the unnecessary columns contain large strings or blobs.
78.
▲
by
chrisb
15y ago
This is nothing to do with NGEN. This is the assembly produced by the Microsoft C compiler for the part of my interpreter that adds two 32-bit integers together. This code is executed whenever the .NET IL 'add' opcode is encountered when th
79.
▲
by
chrisb
15y ago
Unfortunately I don't have any of these compilers ready to use at the moment, but I may try some of them in a week or two.
80.
▲
by
chrisb
15y ago
I've tested that inline assembler performing the computed goto in a smaller test function, and optimisation is performed. And almost all of the C code that I would like to be optimised is in short fairly self-contained statements that use t
81.
▲
by
chrisb
15y ago
Thanks for the idea. Unfortunately it doesn't improve things: pCurEvalStack = TestAdd(pCurEvalStack); 0040BFFA mov eax,dword ptr [pCurEvalStack] 0040BFFD mov dword ptr [ebp-694h],eax 0040C003 mov ecx,
82.
▲
by
chrisb
15y ago
The function is just over 2900 lines long. Every line crafted lovingly by hand. The whole source file is here: http://pastebin.com/9L8N3AVF The function starts at line 232, and the disassembly I was looking at is from line 1852. This is t
83.
▲
by
chrisb
15y ago
Yes - one of the first things I checked - I've tried it with /O2 and /Ox Same result both times.
84.
▲
by
chrisb
15y ago
It does look as though no optimisation is being performed at all. I just isolated the use of the BINARY_OP macro, and put it in a simple-ish test function. now it's being optimized excellently. The function that contains the apparently unop
85.
▲
by
chrisb
15y ago
Frustratingly, I just changed the macro to this: #define BINARY_OP(returnType, type1, type2, op) \ { \ register PTR pRet = pCurEvalStack - sizeof(type1) - sizeof(type2); \ pCurEvalStack = pRet + sizeof(returnType); \ *(return
86.
▲
by
chrisb
15y ago
A couple of years ago I wrote a direct-threaded .NET interpreter. This article made me go and have a look at the assembly that is being generated for the simple 'add' instruction case. The .NET IL is stack-based which the interpreter runs d
87.
▲
by
chrisb
16y ago
This is certainly not true with mainstream Christianity in the UK, although sadly some loud voices can be heard agreeing with what you say. As just one example, Christian Aid, a large UK charity which works to end poverty and injustice arou
88.
▲
by
chrisb
16y ago
Lots of factual errors here. Solar and wind can make very large impacts on electricity generation - see the Desertec website for lots more information: http://www.desertec.org/ Research has shown that geographically distributed renewable
89.
▲
by
chrisb
16y ago
The IPCC 4th assessment report states that greater than 40% of species are likely to be extinct given a temperature increase of ~3.8C, with 30% of species at increasing risk of extinction given a temperature increase of only ~1.5C. A rise o
90.
▲
by
chrisb
16y ago
Ah, memories, memories. The BBC micro model B was the first ever computer I programmed, at the tender age of 8 or 9. My dad was (still is, in fact) working in the computing department at a university all those years ago and managed to get u
More ›