Re: Dgame

2013-02-03 Thread Namespace
I will pause the development / completion of Dgame and generally my work with D. If D should eventually solve the const& problem (and I underline the 'if'), that would be one reason to turn back.

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread Timon Gehr
On 02/03/2013 11:14 PM, Peter Alexander wrote: On Sunday, 3 February 2013 at 22:00:05 UTC, bearophile wrote: Nick Sabalausky: Why is it silly? (Genuine question) "Silly" wasn't the right word, sorry. But generally if a language offers you a clean feature (D contract programming is designed

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread bearophile
Peter Alexander: I don't use D contracts, even though I use asserts. I find that adding contracts bloats my code quite a lot, making it less readable. real log(real x) in { assert(x > 0); } body { return ...; } v.s. real log(real x) { assert(x > 0); return ...; } As far as

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread Peter Alexander
On Sunday, 3 February 2013 at 22:00:05 UTC, bearophile wrote: Nick Sabalausky: Why is it silly? (Genuine question) "Silly" wasn't the right word, sorry. But generally if a language offers you a clean feature (D contract programming is designed clean enough) it's better to use it, when you

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread Nick Sabalausky
On Sun, 03 Feb 2013 22:15:09 +0100 "Michael" wrote: > Best code, it's which works and the client is satisfied. And the end users are satisfied. AND doesn't cause problems when it inevitably needs maintenance. And isn't prone to crapping out or breaches of security.

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread bearophile
Nick Sabalausky: Why is it silly? (Genuine question) "Silly" wasn't the right word, sorry. But generally if a language offers you a clean feature (D contract programming is designed clean enough) it's better to use it, when you clearly need it. In D you can live without D contract program

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread Michael
Best code, it's which works and the client is satisfied.

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread Paulo Pinto
Am 03.02.2013 22:05, schrieb Peter Alexander: On Sunday, 3 February 2013 at 18:24:05 UTC, Dejan Lekic wrote: Welcome to reality Bearophile!!! In real projects people do the job as best as they can at the moment, and they probably, and with right, do not care what people who only theorise, criti

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread Peter Alexander
On Sunday, 3 February 2013 at 20:54:29 UTC, Nick Sabalausky wrote: Also, AIUI, "foreach(i; 0..10)" involves a range and function calls, so perhaps they want to be certain there isn't any overhead that accidentally fails to get optimized out? There is no range or function calls! That syntax exi

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread Paulo Pinto
Am 03.02.2013 19:58, schrieb bearophile: Dejan Lekic: In real projects people do the job as best as they can at the moment, But often there's also some need for: http://en.wikipedia.org/wiki/Code_review Bye, bearophile If only most companies I worked for cared about it, or for that matte

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread Peter Alexander
On Sunday, 3 February 2013 at 18:24:05 UTC, Dejan Lekic wrote: Welcome to reality Bearophile!!! In real projects people do the job as best as they can at the moment, and they probably, and with right, do not care what people who only theorise, criticise, and philosophise think! You write perf

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread Nick Sabalausky
On Sun, 03 Feb 2013 14:56:12 +0100 "bearophile" wrote: > > The author has used asserts at the beginning of methods, outside > a the pre-condition, this is silly. Why is it silly? (Genuine question) > Not using foreach loops on > numerical intervals is a waste of fingers and increases the risk

Re: "Programming in D" book is about 78% translated

2013-02-03 Thread Dejan Lekic
Peter Sommerfeld wrote: > Dejan Lekic wrote: > >> I have yet to see a Kindle or ePUB scientific book that can be compared >> to the paper one... I stopped buying scientific literature for Kindle... >> I buy only novels. > > Me too! Unfortunately I bought Andrei's book for Kindle. It occasional

Re: "Programming in D" book is about 78% translated

2013-02-03 Thread Peter Sommerfeld
Dejan Lekic wrote: I have yet to see a Kindle or ePUB scientific book that can be compared to the paper one... I stopped buying scientific literature for Kindle... I buy only novels. Me too! Unfortunately I bought Andrei's book for Kindle. It occasionally blocks on Kindle, even after I hav

Re: "Programming in D" book is about 78% translated

2013-02-03 Thread Dejan Lekic
Ali Çehreli wrote: > I have continued with the translation of the book. At this point there > are 551 pages in English of total 711 pages in Turkish. > > In addition to many corrections and additions throughout the book, there > are the following chapters translated: > > * Universal Function Cal

Re: DConf13: Venue and Cost

2013-02-03 Thread Dejan Lekic
Paul D. Anderson wrote: > The DConf13 website is mostly "coming soon". That makes sense for > the schedule, speakers, talks, etc., but I'd like to make travel > plans. > > Venue? Which hotel? > > Cost of Registration? > > Thanks, > > Paul +1 - we talked on IRC about this, and I really hope th

Re: "Programming in D" book is about 78% translated

2013-02-03 Thread Dejan Lekic
Walter Bright wrote: > On 1/31/2013 9:10 PM, Ali Çehreli wrote: >> I have continued with the translation of the book. At this point there are 551 >> pages in English of total 711 pages in Turkish. >> >> In addition to many corrections and additions throughout the book, there are the >> following

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread bearophile
Dejan Lekic: In real projects people do the job as best as they can at the moment, But often there's also some need for: http://en.wikipedia.org/wiki/Code_review Bye, bearophile

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread Dejan Lekic
On Sunday, 3 February 2013 at 13:56:13 UTC, bearophile wrote: deadalnix: The code seems to miss the usage of contracts, foreach loops on numerical intervals, final switch, toString with sink, text() function, enum for compile-time constants, most const arguments, const on methods. My expe

Re: DConf13: Venue and Cost

2013-02-03 Thread Ali Çehreli
On 02/03/2013 09:55 AM, Steven Schveighoffer wrote: > On Sun, 03 Feb 2013 12:39:43 -0500, Ali Çehreli wrote: >> I hope the cost will be something very close to free :) so that we >> attract more people. > > It should be at least as much as the registration fee used in > kickstarter ($375) so a

Re: DConf13: Venue and Cost

2013-02-03 Thread Steven Schveighoffer
On Sun, 03 Feb 2013 12:39:43 -0500, Ali Çehreli wrote: On 02/01/2013 12:16 PM, Paul D. Anderson wrote: > The DConf13 website is mostly "coming soon". That makes sense for the > schedule, speakers, talks, etc., but I'd like to make travel plans. > > Venue? Which hotel? > > Cost of Registra

Re: DConf13: Venue and Cost

2013-02-03 Thread Ali Çehreli
On 02/01/2013 12:16 PM, Paul D. Anderson wrote: > The DConf13 website is mostly "coming soon". That makes sense for the > schedule, speakers, talks, etc., but I'd like to make travel plans. > > Venue? Which hotel? > > Cost of Registration? > > Thanks, > > Paul Bump... I haven't heard anything of

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread bearophile
deadalnix: The code seems to miss the usage of contracts, foreach loops on numerical intervals, final switch, toString with sink, text() function, enum for compile-time constants, most const arguments, const on methods. My experience tells me that this is probably a good idea if you don't

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread deadalnix
On Sunday, 3 February 2013 at 11:26:54 UTC, bearophile wrote: Paulo Pinto: Source code is available at GitHub, https://github.com/maximecb/Higgs The code seems to miss the usage of contracts, foreach loops on numerical intervals, final switch, toString with sink, text() function, enum for

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread bearophile
Paulo Pinto: More information on her blog, http://pointersgonewild.wordpress.com/2013/01/31/visiting-mozilla/ I like the slides because they don't contain a page titled "Why D?" nor they talk about D: http://pointersgonewild.files.wordpress.com/2013/01/higgs-presentation.pdf Bye, bearophil

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread bearophile
Paulo Pinto: Source code is available at GitHub, https://github.com/maximecb/Higgs The code seems to miss the usage of contracts, foreach loops on numerical intervals, final switch, toString with sink, text() function, enum for compile-time constants, most const arguments, const on methods

Re: Higgs, a JavaScript JIT done in D

2013-02-03 Thread Andrei Alexandrescu
On 2/3/13 2:46 AM, Paulo Pinto wrote: I just saw this talk: Higgs, a Monitoring JIT for JavaScript & Metacircular VM Layering https://air.mozilla.org/higgs-jit/ Maxime is using D to implement her JIT. More information on her blog, http://pointersgonewild.wordpress.com/2013/01/31/visiting-moz