Re: SDC-32bit

2015-03-21 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 20 March 2015 at 17:20:36 UTC, Laeeth Isharc wrote: How about Javascript or JSASM? So we can write D on the browser? You mean asm.js. I will hook up emscripten soon. However the biggest issue is porting the runtime to javascript.

Re: SDC-32bit

2015-03-20 Thread Laeeth Isharc via Digitalmars-d-announce
On Friday, 17 October 2014 at 18:47:54 UTC, Stefan Koch wrote: On Friday, 17 October 2014 at 10:39:15 UTC, Temtaime wrote: New backend why ? Because I want to code a backend. I want output C or maybe even Cool ... generating UML via a backend would also be nice. Congrats on the project - v

updated SDC-32bit again

2015-03-19 Thread Stefan Koch via Digitalmars-d-announce
My sdc32-experimental has now limited support for : * foreach on forward-ranges * inference of purity * checking the returnType of main currently it CANNOT generate 32bit code anymore ...

Re: SDC-32bit

2014-10-18 Thread Suliman via Digitalmars-d-announce
I want output C or maybe even Cool ... What's benefits this would give?

Re: SDC-32bit

2014-10-18 Thread Stefan Koch via Digitalmars-d-announce
On Saturday, 18 October 2014 at 09:29:10 UTC, Suliman wrote: What's benefits this would give? apart from the hack-factor a backend that generates _nice_ C-code is a really usefil thing to have. For example if you want to program microcontrollers in D.

Re: SDC-32bit

2014-10-17 Thread Temtaime via Digitalmars-d-announce
New backend why ?

Re: SDC-32bit

2014-10-17 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 17 October 2014 at 10:39:15 UTC, Temtaime wrote: New backend why ? Because I want to code a backend. I want output C or maybe even Cool ... generating UML via a backend would also be nice.

Re: SDC-32bit

2014-10-06 Thread Stefan Koch via Digitalmars-d-announce
Updated fork again. -m32 and -m64 switches work properly now. sdc32 uses a the same default outputFile as dmd does. Soon to come : - ArrayLiterals In planning : - a new backend ;D - Source-to-Source transformations

Re: SDC-32bit

2014-10-05 Thread Stefan Koch via Digitalmars-d-announce
I just updated my fork. https://github.com/UplinkCoder/sdc32-experimental * test0037 passes now meaning that alias works in more cases * I implemented foreach for Arrays though since ArrayLiterals are currently not supported this is not too helpful.

Re: SDC-32bit

2014-08-09 Thread deadalnix via Digitalmars-d-announce
On Tuesday, 5 August 2014 at 17:02:28 UTC, Dicebot wrote: On Tuesday, 5 August 2014 at 16:54:47 UTC, Stefan Koch wrote: I'm not sure what you mean. Are you referring to things like pragma msg? to things like mixin(mixin(`writeln (Hello World);`); ``` bool foo() { ... } template bar(bool

Re: SDC-32bit

2014-08-06 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 1 August 2014 at 23:16:45 UTC, Stefan Koch wrote: jsonRunner really runs fast ... io overhead really makes a diffrence Correction I just checked the old runner and I found out the following: sdc runs 7.5 times faster if all sourceFiles are compiled together. (as dub does) the

Re: SDC-32bit

2014-08-05 Thread Shammah Chancellor via Digitalmars-d-announce
On 2014-08-04 04:19:01 +, deadalnix said: On Saturday, 2 August 2014 at 22:48:35 UTC, Shammah Chancellor wrote: Also, it looks by using your fiber based scheduler that you can naturally parallize compiling. Have you investigated that at all? Obviously, yes. But that is quite tricky to

Re: SDC-32bit

2014-08-05 Thread Stefan Koch via Digitalmars-d-announce
On Tuesday, 5 August 2014 at 11:56:28 UTC, Shammah Chancellor wrote: On 2014-08-04 04:19:01 +, deadalnix said: On Saturday, 2 August 2014 at 22:48:35 UTC, Shammah Chancellor wrote: Also, it looks by using your fiber based scheduler that you can naturally parallize compiling. Have you

Re: SDC-32bit

2014-08-05 Thread Dicebot via Digitalmars-d-announce
On Tuesday, 5 August 2014 at 16:54:47 UTC, Stefan Koch wrote: I'm not sure what you mean. Are you referring to things like pragma msg? to things like mixin(mixin(`writeln (Hello World);`); ``` bool foo() { ... } template bar(bool cond) { static if (cond) enum bar = int a;;

Re: SDC-32bit

2014-08-05 Thread Shammah Chancellor via Digitalmars-d-announce
On 2014-08-05 17:02:27 +, Dicebot said: On Tuesday, 5 August 2014 at 16:54:47 UTC, Stefan Koch wrote: I'm not sure what you mean. Are you referring to things like pragma msg? to things like mixin(mixin(`writeln (Hello World);`); ``` bool foo() { ... } template bar(bool cond) {

Re: SDC-32bit

2014-08-03 Thread Stefan Koch via Digitalmars-d-announce
On Saturday, 2 August 2014 at 22:48:35 UTC, Shammah Chancellor wrote: On 2014-08-01 05:00:53 +, deadalnix said: On Tuesday, 29 July 2014 at 13:36:39 UTC, Stefan Koch wrote: Hello, I am happy to announce that my 32bit version of sdc compiles the whole testsuite including mixins. the only

Re: SDC-32bit

2014-08-03 Thread ketmar via Digitalmars-d-announce
On Fri, 01 Aug 2014 15:49:09 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: it must have a commit I have squashed. I do this quite often since sometimes I commit stuff that causes my build to fail :p btw, please, don't do that. just revert commits,

Re: SDC-32bit

2014-08-03 Thread John Colvin via Digitalmars-d-announce
On Sunday, 3 August 2014 at 11:19:01 UTC, Stefan Koch wrote: On Saturday, 2 August 2014 at 22:48:35 UTC, Shammah Chancellor wrote: On 2014-08-01 05:00:53 +, deadalnix said: On Tuesday, 29 July 2014 at 13:36:39 UTC, Stefan Koch wrote: Hello, I am happy to announce that my 32bit version of

Re: SDC-32bit

2014-08-03 Thread Stefan Koch via Digitalmars-d-announce
On Sunday, 3 August 2014 at 11:37:26 UTC, John Colvin wrote: On Sunday, 3 August 2014 at 11:19:01 UTC, Stefan Koch wrote: On Saturday, 2 August 2014 at 22:48:35 UTC, Shammah Chancellor wrote: On 2014-08-01 05:00:53 +, deadalnix said: On Tuesday, 29 July 2014 at 13:36:39 UTC, Stefan Koch

Re: SDC-32bit

2014-08-03 Thread Stefan Koch via Digitalmars-d-announce
On Sunday, 3 August 2014 at 11:31:10 UTC, ketmar via Digitalmars-d-announce wrote: On Fri, 01 Aug 2014 15:49:09 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: it must have a commit I have squashed. I do this quite often since sometimes I commit stuff

Re: SDC-32bit

2014-08-03 Thread deadalnix via Digitalmars-d-announce
On Saturday, 2 August 2014 at 22:48:35 UTC, Shammah Chancellor wrote: Also, it looks by using your fiber based scheduler that you can naturally parallize compiling. Have you investigated that at all? Obviously, yes. But that is quite tricky to get a deterministic result due to compile time

Re: SDC-32bit

2014-08-03 Thread deadalnix via Digitalmars-d-announce
On Sunday, 3 August 2014 at 11:37:26 UTC, John Colvin wrote: Any idea what the significant bottlenecks are / what dmd is much faster at? No idea. I'd like to know, but ultimately, supporting more of D is more important than being fast right now.

Re: SDC-32bit

2014-08-02 Thread ketmar via Digitalmars-d-announce
On Sat, 02 Aug 2014 03:27:58 + deadalnix via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I got that error recently. It is an LLVM bug and upgrading LLVM should do the trick. in my case it was nothing with LLVM. sdc-32 needs dmd-2.065, and i'm using dmd-2.066-master.

Re: SDC-32bit

2014-08-02 Thread Shammah Chancellor via Digitalmars-d-announce
On 2014-08-01 05:00:53 +, deadalnix said: On Tuesday, 29 July 2014 at 13:36:39 UTC, Stefan Koch wrote: Hello, I am happy to announce that my 32bit version of sdc compiles the whole testsuite including mixins. the only there are only 6 tests still failing 2 of them are dependent on

Re: SDC-32bit

2014-08-02 Thread Shammah Chancellor via Digitalmars-d-announce
On 2014-08-01 05:00:53 +, deadalnix said: On Tuesday, 29 July 2014 at 13:36:39 UTC, Stefan Koch wrote: Hello, I am happy to announce that my 32bit version of sdc compiles the whole testsuite including mixins. the only there are only 6 tests still failing 2 of them are dependent on

Re: SDC-32bit

2014-08-01 Thread ketmar via Digitalmars-d-announce
On Wed, 30 Jul 2014 09:39:15 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: can't link it. GNU/Linux, x86, latest DMD from git. lib/libd.a(semantic.o): In function

Re: SDC-32bit

2014-08-01 Thread Stefan Koch via Digitalmars-d-announce
hmm it looks like you are not linking llvm in ... do you use the most recent version from my sdc32-experimental repo ? please not that the dub build is broken because i can't get the link order right. so you have to `make` it :D

Re: SDC-32bit

2014-08-01 Thread ketmar via Digitalmars-d-announce
On Fri, 01 Aug 2014 15:07:56 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: hmm it looks like you are not linking llvm in ... but i am. %-) or, better to say, your makefile doing it with `llvm-config --libs`. do you use the most recent version from my

Re: SDC-32bit

2014-08-01 Thread Stefan Koch via Digitalmars-d-announce
please do `git pull` and if the error presists post the full error-message on dpaste or similar.

Re: SDC-32bit

2014-08-01 Thread Stefan Koch via Digitalmars-d-announce
Are you on a 64bit system ? my makesfiles are hardcoded to use -m32 so I guess it will not link with 64bit libs

Re: SDC-32bit

2014-08-01 Thread ketmar via Digitalmars-d-announce
On Fri, 01 Aug 2014 15:33:05 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: please do `git pull` and if the error presists post the full error-message on dpaste or similar. you're welcome. upgated to git commit 58a36a1acdc6b9a5bcd07edf69b958c3b4ac1657

Re: SDC-32bit

2014-08-01 Thread ketmar via Digitalmars-d-announce
On Fri, 01 Aug 2014 15:40:31 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Are you on a 64bit system ? no, i said somewhere in the previous messages that i'm using x86 arch. %-) signature.asc Description: PGP signature

Re: SDC-32bit

2014-08-01 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 1 August 2014 at 15:26:08 UTC, ketmar via Digitalmars-d-announce wrote: yes, just cloned it before sending report. commit 34fdd6a73e6137173a3840218a76dfd2f6c50d68 Hmm I can't find commit 34fdd6a73e6137173a3840218a76dfd2f6c50d68 ... it must have a commit I have squashed. I do this

Re: SDC-32bit

2014-08-01 Thread Stefan Koch via Digitalmars-d-announce
I can say it has nothing todo with llvm (so far)

Re: SDC-32bit

2014-08-01 Thread ketmar via Digitalmars-d-announce
On Fri, 01 Aug 2014 15:54:42 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: AFAICS this it because you are using dmd-master if it fails with the dmd-2.065 then I have a real nut to crack sorry, you are right. downgrading to dmd-2.065 fixes the build.

Re: SDC-32bit

2014-08-01 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 1 August 2014 at 16:31:49 UTC, ketmar via Digitalmars-d-announce wrote: On Fri, 01 Aug 2014 15:54:42 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: AFAICS this it because you are using dmd-master if it fails with the dmd-2.065 then I have a

Re: SDC-32bit

2014-08-01 Thread Stefan Koch via Digitalmars-d-announce
Next time you might want to use my jsonRunner it runs 7.5x times faster than the old one :D thogh it needs a bit more work enableing multihtreading and such

Re: SDC-32bit

2014-08-01 Thread ketmar via Digitalmars-d-announce
On Fri, 01 Aug 2014 21:58:58 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: enableing multihtreading and such i explititely passes runner.d -j1 (other cores has work to do too %-) signature.asc Description: PGP signature

Re: SDC-32bit

2014-08-01 Thread Stefan Koch via Digitalmars-d-announce
first run time ./runner and then run sh buildTester.sh ./convtest and then time ./jsonRunner i am intressted in your timings runner d envokes the sdc binary while jsonRunner is linked with sdc

Re: SDC-32bit

2014-08-01 Thread ketmar via Digitalmars-d-announce
On Fri, 01 Aug 2014 22:16:50 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: sh buildTester.sh alas, i have no LLVMArchive, and it refuses to link without it. when i removed -L-lLLVMArchive, it says that

Re: SDC-32bit

2014-08-01 Thread ketmar via Digitalmars-d-announce
On Sat, 2 Aug 2014 01:37:33 +0300 ketmar via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: damn, it's hard to switch between two dmds. ok, i compiled everything, here's the timings: ./runner 2 /dev/null /dev/null 21.39s user 1.48s system 146% cpu 15.643 total ./jsonRunner

Re: SDC-32bit

2014-08-01 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 1 August 2014 at 22:44:48 UTC, ketmar via Digitalmars-d-announce wrote: On Sat, 2 Aug 2014 01:37:33 +0300 ketmar via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: damn, it's hard to switch between two dmds. ok, i compiled everything, here's the timings:

Re: SDC-32bit

2014-08-01 Thread ketmar via Digitalmars-d-announce
On Fri, 01 Aug 2014 23:16:43 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Thanks for your cooperation! you're welcome. %-) signature.asc Description: PGP signature

Re: SDC-32bit

2014-08-01 Thread deadalnix via Digitalmars-d-announce
On Friday, 1 August 2014 at 09:02:23 UTC, ketmar via Digitalmars-d-announce wrote: On Wed, 30 Jul 2014 09:39:15 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: can't link it. GNU/Linux, x86, latest DMD from git. lib/libd.a(semantic.o): In function

Re: SDC-32bit

2014-07-31 Thread deadalnix via Digitalmars-d-announce
On Tuesday, 29 July 2014 at 13:36:39 UTC, Stefan Koch wrote: Hello, I am happy to announce that my 32bit version of sdc compiles the whole testsuite including mixins. the only there are only 6 tests still failing 2 of them are dependent on size_t.siezof beeing 8. The otherer 4 have to do with

Re: SDC-32bit

2014-07-30 Thread Stefan Koch via Digitalmars-d-announce
On Tuesday, 29 July 2014 at 18:58:50 UTC, UplinkCoder wrote: Sorry I think i messed up with my github branches. until i get it straightend out you can get my local working source verbatim from http://www42.zippyshare.com/v/4371099/file.html I modified the sdc to produce 32bit code if the -m32

Re: SDC-32bit

2014-07-30 Thread Stefan Koch via Digitalmars-d-announce
make that I have now setup a repo with my 32bit sdc source. https://github.com/UplinkCoder/sdc32-experimental There are NO submodules I dump my source straight in there. cloning it and calling make should be enough.

SDC-32bit

2014-07-29 Thread Stefan Koch via Digitalmars-d-announce
Hello, I am happy to announce that my 32bit version of sdc compiles the whole testsuite including mixins. the only there are only 6 tests still failing 2 of them are dependent on size_t.siezof beeing 8. The otherer 4 have to do with execptoion handling. please check out the 32-branches on

Re: SDC-32bit

2014-07-29 Thread ketmar via Digitalmars-d-announce
On Tue, 29 Jul 2014 13:36:37 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: wow. signature.asc Description: PGP signature

Re: SDC-32bit

2014-07-29 Thread Stefan Koch via Digitalmars-d-announce
On Tuesday, 29 July 2014 at 13:36:39 UTC, Stefan Koch wrote: Hello, the only there are only 6 tests still failing 2 of them are dependent on size_t.siezof beeing 8. Correction I fixed the tests for 32bit only 4 tests are failing all of them due to Execptions

Re: SDC-32bit

2014-07-29 Thread Stefan Koch via Digitalmars-d-announce
On Tuesday, 29 July 2014 at 14:22:43 UTC, ketmar via Digitalmars-d-announce wrote: On Tue, 29 Jul 2014 13:36:37 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: wow. Well thanks. please give me feedback if you are using it. In the next days i'm going to

Re: SDC-32bit

2014-07-29 Thread ketmar via Digitalmars-d-announce
On Tue, 29 Jul 2014 15:43:56 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: ah. sure i'll try to write you about every bug i found. %-) signature.asc Description: PGP signature

Re: SDC-32bit

2014-07-29 Thread UplinkCoder via Digitalmars-d-announce
Sorry I think i messed up with my github branches. until i get it straightend out you can get my local working source verbatim from http://www42.zippyshare.com/v/4371099/file.html I modified the sdc to produce 32bit code if the -m32 argument is passed to it. 64bit is still the default. I also