Re: Executable memory

2013-10-04 Thread Alan
On Friday, 4 October 2013 at 22:00:36 UTC, Adam D. Ruppe wrote: I'm just playing at this point and I'm pretty sure these hacks won't quite work or might even be kinda useless... but one way to avoid the hassle of making the machine code yourself is to get the compiler to do it. So we'll write

Re: Executable memory

2013-10-04 Thread Alan
On Friday, 4 October 2013 at 22:00:36 UTC, Adam D. Ruppe wrote: I'm just playing at this point and I'm pretty sure these hacks won't quite work or might even be kinda useless... but one way to avoid the hassle of making the machine code yourself is to get the compiler to do it. So we'll write

Re: Executable memory

2013-10-04 Thread Alan
On Friday, 4 October 2013 at 21:10:30 UTC, Adam D. Ruppe wrote: On Friday, 4 October 2013 at 20:50:09 UTC, Alan wrote: Does anyone have an example of how to maybe print a character to the string with a system call? yeah on Linux the assembly is: string a = "hello!"; auto sp

Re: Executable memory

2013-10-04 Thread Alan
On Friday, 4 October 2013 at 20:50:09 UTC, Alan wrote: Great! So that's exactly what happens! Does anyone have an example of how to maybe print a character to the string with a system call? I'm on a 64bit intel pentium and running ubuntu linux. Any help is appreciated, thanks

Re: Executable memory

2013-10-04 Thread Alan
Great! So that's exactly what happens! Does anyone have an example of how to maybe print a character to the string with a system call? I'm on a 64bit intel pentium and running ubuntu linux. Any help is appreciated, thanks again Adam.

Re: Executable memory

2013-10-04 Thread Alan
Interesting... I was not aware of those functions in the D runtime, thanks for the help! Just some simple conditional compile statements will probably do the job!

Executable memory

2013-10-04 Thread Alan
Hello! Sorry if I appear to be posting a lot of questions (if you saw my LLVM one, thanks again for the help) I'm trying to throw some things together and learn a lot. So I've been researching compilers and virtual machines recently, I've managed to implement some fairly good front ends and th

Re: End Of Line character and others not working.

2013-08-16 Thread Alan
On Saturday, 17 August 2013 at 05:37:18 UTC, H. S. Teoh wrote: On Sat, Aug 17, 2013 at 07:19:19AM +0200, Alan wrote: On Saturday, 17 August 2013 at 05:05:12 UTC, H. S. Teoh wrote: >On Sat, Aug 17, 2013 at 06:53:16AM +0200, Alan wrote: >>Hello! The past few hours I've been w

Re: End Of Line character and others not working.

2013-08-16 Thread Alan
On Saturday, 17 August 2013 at 05:05:12 UTC, H. S. Teoh wrote: On Sat, Aug 17, 2013 at 06:53:16AM +0200, Alan wrote: Hello! The past few hours I've been working on some things and I came accross a small bug. I'm essentially practicing lexing and parsing by implementing a (ve

End Of Line character and others not working.

2013-08-16 Thread Alan
Hello! The past few hours I've been working on some things and I came accross a small bug. I'm essentially practicing lexing and parsing by implementing a (very) simple language. Everything is going great so far (variable declarations, writing to stdout etc...) but I have a small problem wi

Re: halting problem :)

2009-01-27 Thread Alan Turing
Maybe I can help... Saaa Wrote: > My program doesn't exit.. > > void main() > { > > .. > Data data[] > > createData(data); > //This proces takes a minute or two. > //data now holds about 70 Data elements > > writefln(`Creating buffer`); > ubyte[] buffer; > for (int i=0; i { > > bu

Re: Save/load data to a file (JSON for phobos)

2008-11-17 Thread Alan Knowles
This should work, although I really need to rewrite some of it to use streams. http://www.akbkhome.com/svn/D_Stuff/json.d nobody wrote: "Christopher Wright" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] nobody wrote: I would like to be able to save and load a lot of data to/fr

Re: whois bulk queries, how to

2008-11-08 Thread Alan Knowles
The whois servers rate limit to stop spammers from farming them.. sleep() is probably your best answer Regards Alan BLS wrote: Hi I want to do bulk queries on whois engines. Everthing works fine for a single request. whois("suneido.com") for instance. The problem is that