Re: Hong Kong dlang Meetup

2017-09-05 Thread Lionello Lunesu via Digitalmars-d-announce

Let's occupy codeaholics:
https://www.meetup.com/Codeaholics/events/242640432/

On 6/9/2017 00:26, Lionello Lunesu wrote:

+1!

Let me know the dates and I'll blast it to the channels I'm on
(Codeaholics, Dim Sum Labs hacker space.)

L.

On 5/9/2017 03:25, Jonathan M Davis via Digitalmars-d-announce wrote:

Several of us from the D community will be in Hong Kong on a business
trip
next week (me, John Colvin, Atila Neves, and Ilya Yaroshenko), and our
client, Symmetry Investments[1], has offered to sponsor a dlang
meetup. We
haven't decided when exactly to meet up yet, but we're looking to meet up
sometime during the week of the 11th - 15th (probably on Thursday or
Friday
evening) and figured that we should see if anyone here was interested in
showing up and would thus have some stake in when during the week it
happened.

The current plan is that the meetup will take place at Symmetry's main
office in Chater House in Central Hong Kong.

- Jonathan M Davis

[1] http://symmetryinvestments.com/about-us/

Some open source dlang stuff whose developement was paid for by Symmetry:
https://github.com/kaleidicassociates

Of note is https://github.com/kaleidicassociates/excel-d which Atila
talked
about at dconf this year.







Re: Hong Kong dlang Meetup

2017-09-05 Thread Lionello Lunesu via Digitalmars-d-announce

+1!

Let me know the dates and I'll blast it to the channels I'm on 
(Codeaholics, Dim Sum Labs hacker space.)


L.

On 5/9/2017 03:25, Jonathan M Davis via Digitalmars-d-announce wrote:

Several of us from the D community will be in Hong Kong on a business trip
next week (me, John Colvin, Atila Neves, and Ilya Yaroshenko), and our
client, Symmetry Investments[1], has offered to sponsor a dlang meetup. We
haven't decided when exactly to meet up yet, but we're looking to meet up
sometime during the week of the 11th - 15th (probably on Thursday or Friday
evening) and figured that we should see if anyone here was interested in
showing up and would thus have some stake in when during the week it
happened.

The current plan is that the meetup will take place at Symmetry's main
office in Chater House in Central Hong Kong.

- Jonathan M Davis

[1] http://symmetryinvestments.com/about-us/

Some open source dlang stuff whose developement was paid for by Symmetry:
https://github.com/kaleidicassociates

Of note is https://github.com/kaleidicassociates/excel-d which Atila talked
about at dconf this year.





Can't go to DConf :( Who wants my ticket?

2016-05-02 Thread Lionello Lunesu via Digitalmars-d-announce
I'm finishing up a big project and can't leave this week. :( Hope to 
tune in remotely though!


Let me know if you're interested or know somebody who is. Or bring that 
skeptical colleague of yours!


Lio.


Re: Tonight: Introduction to D at Codeaholics (HK)

2015-11-11 Thread Lionello Lunesu via Digitalmars-d-announce

On 11/11/15 23:34, Walter Bright wrote:

On 11/11/2015 3:03 AM, Lionello Lunesu wrote:

Will share how it's received in an hour ;)



This is great! How did it go?


Actually went much better than expected! Very engaging crowd, with good 
questions. I think the way I positioned D was being "just another cool 
tool in a programmer's toolbox" really resonated with them. It certainly 
prevented the usual Go vs D vs Rust kind of competitiveness.


Few of the questions I got were

* Why doesn't D explicitly specify the exceptions that can be thrown? 
(To which I answered that I never saw the point in Java and only found 
it tedious. This did not convince the person.)


* Can I use D to build for ARM? (I said that the usual ARM code 
generators of GDC and LDC could be used, and that the runtime had less 
and less [if any] x86 dependencies left.)


* Why the difference between byte[] and char[]? (I explained it as being 
a semantic difference, with no difference in memory layout. One can be 
indexed meaningfully, the other can't.)


* Can I create an array of shared ints (as opposed to a shared array of 
ints)? I said that one could by using shared(int)[], although I have yet 
to try this myself.


* Does D use SIMD? (Yes, and it's leveraged automatically when you do 
operations on arrays.)


* How do the libraries available to D compare to the others like Go and 
Python? (I replied by introducing C/C++ compat and code.dlang.org)


* What if a global function with argument A has the same name as a 
member of A? (I talked about function hijacking and how D prevents it.)


I might remember more tomorrow. Will share if I do.

L.


Re: Tonight: Introduction to D at Codeaholics (HK)

2015-11-11 Thread Lionello Lunesu via Digitalmars-d-announce

On 11/11/15 18:30, Ali Çehreli wrote:

On 11/11/2015 01:19 AM, Lionello Lunesu wrote:


 an introduction to D at this month's Codeaholics meetup


Can you share your slides please... within the next 12 hours or so...
before some of us give a similar talk... :)

Ali



Sure thing:
https://onedrive.live.com/redir?resid=DC1E6665A482DC20%21690440

It's going to be a fairly low-level talk for a mostly python/ruby crowd, 
focusing on some of the key advantages of D over the others.


Will share how it's received in an hour ;)

L.


Tonight: Introduction to D at Codeaholics (HK)

2015-11-11 Thread Lionello Lunesu via Digitalmars-d-announce
Sorry for the short notice, but I'll be giving an introduction to D at 
this month's Codeaholics meetup. Drop by if you happen to be in Hong Kong!


More info here (no need for RSVP):
http://www.meetup.com/Codeaholics/events/226177740/

7pm - 9pm
CoCoon
3/F, Citicorp Centre, 18 Whitfield Road, TinHau, Hong Kong


Re: Please vote for the DConf logo

2015-11-04 Thread Lionello Lunesu via Digitalmars-d-announce

On 04/11/15 17:30, Andrei Alexandrescu wrote:

Reply to this with 1.1, 1.2, 2, or 3:

1) by ponce:

Variant 1:
https://github.com/p0nce/dconf.org/blob/master/2016/images/logo-sample.png
Variant 2:
https://raw.githubusercontent.com/p0nce/dconf.org/4f0f2b5be8ec2b06e3feb01d6472ec13a7be4e7c/2016/images/logo2-sample.png


2) by Jonas Drewsen:

https://dl.dropboxusercontent.com/u/188292/g4421.png

3) by anonymous:

PNG: http://imgur.com/GX0HUFI
SVG: https://gist.github.com/anonymous/4ef7282dfec9ab327084


Thanks,

Andrei


3.


Re: Walter and I talk about D in Romania

2015-10-03 Thread Lionello Lunesu via Digitalmars-d-announce

On 02/10/15 19:25, Andrei Alexandrescu wrote:

Walter and I will travel to Brasov, Romania to hold an evening-long
event on the D language. There's been strong interest in the event with
over 300 registrants so far.

http://curiousminds.ro

Scott Meyers will guest star in a panel following the talks. We're all
looking forward to it!


Andrei


Misto


Re: Simple tutorial on deploying Vibe.d to Azure Web App

2015-09-27 Thread Lionello Lunesu via Digitalmars-d-announce

On 26/09/15 12:50, Jeremy wrote:

http://www.codestrokes.com/2015/09/deploying-d-to-azure-webapp/


Thanks for this! Really useful!


Re: This Week in D: Dconf Thursday summaries

2015-06-17 Thread Lionello Lunesu via Digitalmars-d-announce

On 16/06/15 01:12, Adam D. Ruppe wrote:

http://arsdnet.net/this-week-in-d/jun-14.html

I didn't finish Friday yet, so that will be next week, but here's all of
Thursday's stuff! Also std.database update in there, lots of community
announcements, and a bug list cleanup.


Great writeup. Reading it I get to relive the conference :)

By the way, Lightning Talk #3 was me.


Re: Now official: we are livestreaming DConf 2015

2015-05-27 Thread Lionello Lunesu via Digitalmars-d-announce

On 27/05/15 13:23, Kai Nacke wrote:

On Wednesday, 27 May 2015 at 19:01:00 UTC, Andrei Alexandrescu wrote:

Thanks to John Colvin! He rigged his webcam centrally so we can
livestream DConf 2015 in passable quality to youtube. Link:

https://www.youtube.com/watch?v=-OCl-jWyT9E

It's live now (30 minutes of break still ongoing so not a lot going on
at the moment). Schedule at:

http://dconf.org/2015/schedule/index.html

Times are in MDT (GMT-0600).


Andrei


Hi!

Any chance to change the YouTube settings? Here in Germany I get only
the message:
Live streaming is not available in your country due to rights issues.

Regards,
Kai


Kai, send me a PM by mail (my first name @ my last name . com) and I'll 
send you US VPN creds.


Anybody else who needs US VPN: send me a mail!

Lio.


Re: Martin Nowak's talk cancelled

2015-05-27 Thread Lionello Lunesu via Digitalmars-d-announce

On 27/05/15 13:01, Andrei Alexandrescu wrote:

On 5/27/15 12:13 PM, Lionello Lunesu wrote:

Daniel suggested to turn it into a round of lightning talks. These are
more spontaneous and don't need preparation. Might get people to talk
that wouldn't fill a 1-hour talk.


Good. So you go first? -- Andrei


Sure :)


Re: Martin Nowak's talk cancelled

2015-05-27 Thread Lionello Lunesu via Digitalmars-d-announce

On 26/05/15 15:25, Andrei Alexandrescu wrote:

Sad news - Martin missed his flight and found no viable alternative to
make it to DConf.

For his slot at 10:00 AM on Thursday, we'll look into teleconferencing
options for him. Alternatively, we're now taking applications from the
other speakers and attendees to fill his slot. Please email your
proposals to Walter and myself if interested.


Andrei


Daniel suggested to turn it into a round of lightning talks. These are 
more spontaneous and don't need preparation. Might get people to talk 
that wouldn't fill a 1-hour talk.


L.


Re: Mago Debugger changes hands

2014-08-13 Thread Lionello Lunesu via Digitalmars-d-announce

On 10/08/14 11:33, Aldo Nunez wrote:

Greetings to all Mago Debugger, Visual D, and interested D users.

After 5 years, I can no longer continue development of Mago Debugger.
The project requires too much attention for me to keep working on it
while keeping my family happy.

I learned a ton, and feel satisfied to have contributed to the D
Programming Language.

I'm handing off the project to Rainer Schuetze. He has forked it at
github (https://github.com/rainers/mago). If you're interested in
contributing to it, please contact him.


Thanks for your hard work, man! It's my favorite D debugger :)

Lio.


Re: DMD v2.066.0-b4

2014-07-16 Thread Lionello Lunesu via Digitalmars-d-announce

On 16/07/14 14:34, ketmar via Digitalmars-d-announce wrote:

standalone module copypasted in comments. my fault, i'm really sorry.


It's fine, I can create the PR for you, but I haven't ventured into the 
backend before, so your fix would be appreciated. You'll get the credit 
as well, of course.


Re: DMD v2.066.0-b4

2014-07-16 Thread Lionello Lunesu via Digitalmars-d-announce

On 16/07/14 00:40, Andrew Edwards wrote:

Binaries are located here:

>...

None of these links appear to work for me. (And this time I can't blame 
the Chinese firewall.)


L.


Re: DMD v2.066.0-b4

2014-07-16 Thread Lionello Lunesu via Digitalmars-d-announce

On 16/07/14 08:49, ketmar via Digitalmars-d-announce wrote:

On Wed, 16 Jul 2014 06:39:56 +
uri via Digitalmars-d-announce 
wrote:


You spent the effort implementing a fix, the time talking about
your fix but cannot be buggered submitting a PR for the fix?

one fix at a time, not more. the first one is still sitting in
bugtracker, collecting dust. maybe after it will be reviewed i'll find
some motivation to fill another ticket... in a month... or two... or
six...

anyway, sorry for the noise. i'm really annoyed and just wanted to tell
the world about it. sorry again.



Then paste the fix here and allow somebody else to do the boring PR 
stuff for you.


Just saying "I've got a fix but not sharing" sounds childish.


Re: Coloring terminal output.

2014-07-16 Thread Lionello Lunesu via Digitalmars-d-announce

On 13/07/14 22:11, yamadapc wrote:

Hello all :)

I've made a simple port of ruby's colorize library for D.
I'd greatly appreciate any feedback. Windows isn't supported,
yet.

Links:
http://code.dlang.org/packages/colorize
https://github.com/yamadapc/d-colorize
https://github.com/fazibear/colorize


Good timing. I just added coloring support to DMD:

https://github.com/D-Programming-Language/dmd/blob/master/src/color.c

You can clearly see the difference between Windows and *nix.

L.


Re: dmd 2.065 beta 3

2014-02-07 Thread Lionello Lunesu

On 2/4/14, 2:34, Andrew Edwards wrote:

Installer

> ...

These are the correct titles for the Installer pull requests:

#52 add alternative download for dmd.${Version2}.zip
#51 disable Audio and USB in VirtualBox
#50 use lib64 for phobo64.lib and gcstub64.obj on Windows
#49 only copy explicitly listed files from phobos
#48 fix deb copyright typo
#47 Update deb/rpm to new dmd versioning scheme.
#46 Vagrant
#45 update symlinks



Re: D programming workshop on Dec 15th, Shanghai

2013-12-05 Thread Lionello Lunesu

The registration page is online:

http://xinchejian.com/event2/upcoming-workshop/?ee=200



D programming workshop on Dec 15th, Shanghai

2013-12-02 Thread Lionello Lunesu

Hi,

I'll be hosting a D workshop on the 15th in the XinCheJian hacker space, 
in Shanghai, China. ChangLe Rd 1035 2F, 长乐路1035号2楼


It'll take place from 1pm to 5pm and is meant for beginners. There will 
likely be a longer/advanced workshop the week after, depending on demand.


The workshop is free, but 1 month membership to the hacker space is 
100RMB, in case you're not a member already.


Drop me a mail if you're interested. There'll be a formal announcement 
on http://www.xinchejian.com later this week.


Tips are welcomed as well ;)

Lio.


Re: D Conference 2012 - postponed until 2013

2012-06-26 Thread Lionello Lunesu

On Saturday, 23 June 2012 at 20:51:00 UTC, Walter Bright wrote:
Due to there not being sufficient time left to get enough 
speakers lined up.


How many we have / how many we want?

I don't consider myself a good speaker, but I could talk about D 
stuff anytime. For example, that "Modern COM in D" thingie I did, 
etc...


L.


Re: Modern COM Programming in D

2012-01-26 Thread Lionello Lunesu

On 26-1-2012 22:30, Sean Kelly wrote:

Very nice!  One tiny thing I noticed so far--the last 2 comments on page 8 are 
backwards.


Yeah, saw that as well. Good catch! :)


Re: Modern COM Programming in D

2012-01-25 Thread Lionello Lunesu

On 26-1-2012 4:50, Jesse Phillips wrote:

On Tuesday, 24 January 2012 at 17:08:01 UTC, Lionello Lunesu wrote:

Little over a year ago I held a tech talk at Microsoft about how I
used D to write readable COM code. A while back I thought I'd try to
get permission to share these slides, and what'dya know:

http://lunesu.com/index.php?/archives/126-Modern-COM-Programming-in-D.html


Direct link to the slides:
http://lunesu.com/uploads/ModernCOMProgramminginD.pptx

Let me know what you guys think!

Lionello.


I have some questions related to this.

One, do you know about Juno?
http://www.dsource.org/projects/juno
New Source location:
https://github.com/he-the-great/Juno-Windows-Class-Library


Hadn't heard of it, no. Checking it now.


Two, how does your work compare? Are these improvements that could go
into Juno?


My code is a template that generates wrappers for COM interfaces. Sure, 
that template can be part of any related library, but the prerequisites 
probably make it too niche to be universally useful. For one, it needs a 
D-style interface definition for the COM interfaces.



Three, you may be interested to know about tlbimpd:
http://www.dsource.org/projects/juno/wiki/TypeLibraryImporter

I revived the project for D2, but Richard Webb has actually done the
work to make it usable. Wondering if effort on this could be
consolidated and as brought up in the reddit comments maybe work could
go towards WinRT support?


Hmm, this would work beautifully! tlbimpd could be extended to generate 
the same kind of wrappers for each COM object/interface.


About WinRT... That's actually how my code started out. There are still 
some WinR Treferences in the slides that I should have removed. Anyway, 
now that WinRT is 'out in the open' that's no longer an issue. So, yes, 
the same trick works for all of WinRT.



Great presentation material though. Thank you for having done so.


Thanks!

L.


Re: Modern COM Programming in D

2012-01-25 Thread Lionello Lunesu

On 26-1-2012 0:58, bls wrote:

On 01/24/2012 09:07 AM, Lionello Lunesu wrote:

Little over a year ago I held a tech talk at Microsoft about how I used
D to write readable COM code. A while back I thought I'd try to get
permission to share these slides, and what'dya know:

http://lunesu.com/index.php?/archives/126-Modern-COM-Programming-in-D.html


Direct link to the slides:
http://lunesu.com/uploads/ModernCOMProgramminginD.pptx

Let me know what you guys think!

Lionello.


Congratulations Lionello, This is not just a useful snippet. You have
been able to explain all the D2 goodies in a reasonable context.

This code should have a home and live at "Fine_Art_Of_D2_Programming.com"
Very well done!
Thank You, Bjoern



Thanks Bjoern! :)


Re: Modern COM Programming in D

2012-01-25 Thread Lionello Lunesu

On 25-1-2012 14:56, kdmult wrote:

On Wednesday, 25 January 2012 at 01:08:04 UTC, Lionello Lunesu wrote:

Done:
http://lunesu.com/uploads/ModernCOMProgramminginD.pdf


Could you correct the URL of your files on the last page?


My files
http://dpxml-lio/d/




Yeah, that's not meant to work. Releasing the source code it a entirely 
different process that I don't think is worth it. I'll remove the link 
from the slide.


Lionello.


Re: Modern COM Programming in D

2012-01-25 Thread Lionello Lunesu

On 25-1-2012 14:56, kdmult wrote:

On Wednesday, 25 January 2012 at 01:08:04 UTC, Lionello Lunesu wrote:

Done:
http://lunesu.com/uploads/ModernCOMProgramminginD.pdf


Could you correct the URL of your files on the last page?


My files
http://dpxml-lio/d/




Yeah, that's not meant to work. Releasing the source code it a entirely 
different process that I don't think is worth it. I'll remove the link 
from the slide.


Lionello.


Re: Modern COM Programming in D

2012-01-25 Thread Lionello Lunesu

On 25-1-2012 2:26, Walter Bright wrote:

On 1/24/2012 9:07 AM, Lionello Lunesu wrote:

Little over a year ago I held a tech talk at Microsoft about how I
used D to
write readable COM code. A while back I thought I'd try to get
permission to
share these slides, and what'dya know:

http://lunesu.com/index.php?/archives/126-Modern-COM-Programming-in-D.html


Direct link to the slides:
http://lunesu.com/uploads/ModernCOMProgramminginD.pptx

Let me know what you guys think!

Lionello.


I'd like to link to this.

But first, please turn the slides into a single .pdf file! Or html.
Something browser friendly.


Done:
http://lunesu.com/uploads/ModernCOMProgramminginD.pdf


Re: Visual D 0.3.30 released: Code completion from semantic analysis on the horizon

2012-01-24 Thread Lionello Lunesu

My favorite IDE for D! Keep up the good work!

By the way: I think you should released idl2d as a separate project ;)

On 7-1-2012 22:41, Rainer Schuetze wrote:

Hi,

I'd like to announce the release of a new version of Visual D.

Visual D is a Visual Studio package providing both project management
and language services for the D programming language. It works with
Visual Studio 2005-2010 and 11 as well as the free Visual Studio Shells.

Highlights of this version 0.3.30 include

- syntax highlighting improvements regarding scope(guard), __ctfe, is,
in and predefined versions
- added checkbox for options -gs and -property to project configuration
- debugger and build improvements
- experimental: code completion and tool tips from semantic analysis of
source code

See http://www.dsource.org/projects/visuald/wiki/VersionHistory for a
full list of changes.

The code completion from semantic analysis is not complete yet, but I
think it can already be very helpful. You'll have to enable it
explicitly in the D Language options due to it's experimental status.

The Visual D installer can be downloaded from its website at
http://www.dsource.org/projects/visuald

Have fun,
Rainer




Modern COM Programming in D

2012-01-24 Thread Lionello Lunesu
Little over a year ago I held a tech talk at Microsoft about how I used 
D to write readable COM code. A while back I thought I'd try to get 
permission to share these slides, and what'dya know:


http://lunesu.com/index.php?/archives/126-Modern-COM-Programming-in-D.html

Direct link to the slides: 
http://lunesu.com/uploads/ModernCOMProgramminginD.pptx


Let me know what you guys think!

Lionello.


Re: Phobos unit testing uncovers a CPU bug

2010-11-27 Thread Lionello Lunesu

On 28-11-2010 5:49, Dmitry Olshansky wrote:

On 26.11.2010 23:02, Don wrote:

The code below compiles to a single machine instruction, yet the
results are CPU manufacturer-dependent.

import std.math;

void main()
{
assert( yl2x(0x1.0076fc5cc7933866p+40L, LN2)
== 0x1.bba4a9f774f49d0ap+4L); // Pass on Intel, fails on AMD
}

The results for yl2x(0x1.0076fc5cc7933866p+40L, LN2) are:

Intel: 0x1.bba4a9f774f49d0ap+4L
AMD: 0x1.bba4a9f774f49d0cp+4L

The least significant bit is different. This corresponds only to a
fraction of a bit (that is, it's hardly important for accuracy. For
comparison, sin and cos on x86 lose nearly sixty bits of accuracy in
some cases!). Its importance is only that it is an undocumented
difference between manufacturers.

The difference was discovered through the unit tests for the
mathematical Special Functions which will be included in the next
compiler release. Discovery of the discrepancy happened only because
of several features of D:

- built-in unit tests (encourages tests to be run on many machines)

- built-in code coverage (the tests include extreme cases, simply
because I was trying to increase the code coverage to high values)

- D supports the hex format for floats. Without this feature, the
discrepancy would have been blamed on differences in the
floating-point conversion functions in the C standard library.

This experience reinforces my belief that D is an excellent language
for scientific computing.

Thanks to David Simcha and Dmitry Olshansky for help in tracking this
down.

Glad to help!
I was genuinely intrigued because not more then a few weeks ago I
discussed with a friend of mine a possibility of differences in FP
calculations of AMD vs Intel.
You see, his scientific app yielded different results when working at
home/at work, which is a frustrating experience. Since that's exactly
same binary, written in Delphi (no C run-time involved and so on) and
environment is pretty much the same... I suggested to check CPU vendors
just in case... of course, different.

In the meantime, I sort of "ported" the test case to M$ c++ inline asm
and posted it on AMD forums, let's see what they have to say.
http://forums.amd.com/forum/messageview.cfm?catid=319&threadid=142893&enterthread=y





http://forums.amd.com/forum/messageview.cfm?catid=29&threadid=135771
This post also talks about a fyl2x bug. Wonder if it's the same bug.

L.


Re: Build a D project is now easy

2010-11-23 Thread Lionello Lunesu

On 22-11-2010 19:10, Russel Winder wrote:

On Mon, 2010-11-22 at 01:50 +, bioinfornatics wrote:

hello community,
I have start a project for generate easily a build system for D
project. Currently in d world everyone use his own build system for
build a new project with a new system is a bit hard for everyone, for
debug  same thing. My tool generate
makefile system for your project in one command:


Not entirely true.  Many people use make even though it is past it's
"use by" date.  Many people use SCons, many others use Waf, and some use
CMake.

GIven that your system is a Makefile manager, you problably need to
argue why a new system and not add-ins to CMake -- which is now the
default makefile manager system.


Did I miss a memo? I never heard of CMake, and suddenly it's the default?

L.


Re: New home page

2010-10-04 Thread Lionello Lunesu

On 5-10-2010 2:33, Walter Bright wrote:

Robert Clipsham wrote:

On 04/10/10 03:59, Walter Bright wrote:

Lionello Lunesu wrote:

The new page loads terribly slow because of some embedded resource
from twitter.com. Twitter is blocked in China, so when I open your
website nothing is shown until the connection to twitter times out.
Perhaps you can use XmlHttpRequest in javascript to load the twitter
stuff on the 'background'?


The previous page had the same javascript in it. I don't know how this
one could load slow and the previous one not.

Can you post a diff for how to change the html to load in the
background?


Rather than getting the JS to load it in the background, the lazy
option is to move the two 

Re: New home page

2010-10-03 Thread Lionello Lunesu

On 2010-10-04 7:09, Walter Bright wrote:

http://www.digitalmars.com

Yes, I should add some color and style sheets, but at the moment I am
just trying to get the layout right and make it much simpler to get to
what I think are the most useful links.

Comments welcome.


The new page loads terribly slow because of some embedded resource from 
twitter.com. Twitter is blocked in China, so when I open your website 
nothing is shown until the connection to twitter times out. Perhaps you 
can use XmlHttpRequest in javascript to load the twitter stuff on the 
'background'?


Re: This just in: authorless TDPL becomes collector's edition

2010-07-09 Thread Lionello Lunesu

On 2010-06-02 1:59, Andrei Alexandrescu wrote:

Due to a pretty odd mistake at the printer, the first 1000 copies of
TDPL will not have the name of the author on their cover. (The name
still appears on the back cover and the spine.)

The history of printing is rife with rare printing mistakes that have
become collector's editions. Preorder now to be among the first 1000
readers who get the authorless TDPL edition.


Andrei


Yeey! Got mine after 3+ weeks of waiting, and a 'collector's edition' no 
less!


Re: Visual D 0.3.9. released

2010-05-29 Thread Lionello Lunesu
Hi Rainer,

You're doing a great job on this, keep it up!

Is it possible for you to add the symbols for visuald.dll to the
installer as well? VisualD 0.3.8 crashed on me yesterday and I want to
investigate further. (It crashed when I started typing pragma
(comment,"..."); and I'm not sure that syntax is even correct.

L.

On 29-5-2010 23:39, Rainer Schuetze wrote:
> Hi,
> 
> I'd like to announce the release of Visual D 0.3.9.
> 
> Visual D is a Visual Studio package providing both project management
> and language services. It works with Visual Studio 2005, 2008 and 2010
> as well as the free Visual Studio Shells.
> 
> This release features a cool search window that allows to quickly browse
> symbols read from compiler generated JSON files. It also allows fast
> file lookup in large projects.
> 
> Major changes in this version:
> 
>   * new file/symbol search window
>   * word-completion can now be expanded to symbol lookup by pressing
> Ctrl-Space again
>   * now uses machine-translated Windows SDK instead of std.windows plus
> a lot of manual translated additions
> 
> Recent version not announced here included:
> 
>   * function parameter tooltips
>   * fixed problems on x64-Windows
>   * added cv2pdb to installer
> 
> Visual D can be downloaded at http://www.dsource.org/projects/visuald
> You will also find a short tour through some of Visual D's features there.
> 
> I've also tried to make the site a bit more user friendly, I hope you
> like it.
> 
> Rainer
> 
> 



Re: dmd 1.060 and 2.045 release

2010-05-08 Thread Lionello Lunesu
On 7-5-2010 12:01, Lionello Lunesu wrote:
> On 7-5-2010 9:10, Brad Roberts wrote:
>> On Fri, 7 May 2010, Lionello Lunesu wrote:
>>
>>> On 6-5-2010 22:37, Michel Fortin wrote:
>>>> On 2010-05-05 23:45:50 -0400, Walter Bright 
>>>> said:
>>>>
>>>>> Walter Bright wrote:
>>>>>> Alex Makhotin wrote:
>>>>>>> It takes ~40 seconds 50% load on the dual core processor(CentOS 5.3
>>>>>>> kernel 2.6.32.4), to get the actual error messages about the
>>>>>>> undefined identifier.
>>>>>>
>>>>>> Definitely there's a problem.
>>>>>
>>>>> The problem is the spell checker is O(n*n) on the number of characters
>>>>> in the undefined identifier.
>>>>
>>>> That's an algorithm that can't scale then.
>>>>
>>>> Checking the Levenshtein distance for each known identifier within a
>>>> small difference in length would be a better idea. (Clang is said to use
>>>> the Levenshtein distance, it probably does something of the sort.)
>>>>
>>>> http://en.wikipedia.org/wiki/Levenshtein_distance
>>>>
>>> and especially this line:
>>>
>>> # If we are only interested in the distance if it is smaller than a
>>> threshold k, then it suffices to compute a diagonal stripe of width 2k+1
>>> in the matrix. In this way, the algorithm can be run in O(kl) time,
>>> where l is the length of the shortest string.
>>
>> The source for this is pretty isolated.. anyone want to volunteer take a 
>> shot at improving this part of dmd?
>>
>> Later,
>> Brad
> I see, speller.c, I'll have a look..

I'm in the middle of moving from one city to another so don't wait for
me. I have attached the D version of the code in the wikipedia article
(including the patch for transpositions.)

It's not straightforward to drop this in (apart from it being in D),
since speller.c creates all variations on a string (=inefficient) and
uses a callback function to check if a variation is a valid symbol.

I'll have more time to look at this next week.

L.
T minimum(T)(T[] all ...)
in {
assert(all.length > 0);
}
out(result) {
foreach (t; all)
assert(result <= t);
}
body {
T ret = all[0];
foreach (t; all)
if (t < ret)
ret = t;
return ret;
}

struct array2d(T) {
private int w;
private T[] data;
public this(int w, int h) {
this.data = new T[w*h];
this.w = w;
}
public T get(int x, int y) {
return data[x+y*w];
}
public void set(int x, int y, T t) {
data[x+y*w] = t;
}
}

int LevenshteinDistance(string s, string t)
{
const int m = s.length;
const int n = t.length;
// d is a table with m+1 rows and n+1 columns
array2d!(int) d = array2d!(int)(m+1,n+1);

foreach (i; 0..m+1)
d.set(i, 0, i); // deletion
foreach (j; 0..n+1)
d.set(0, j, j); // insertion

int k = 0;
foreach (j; 1..n+1)
{
foreach (i; 1..m+1)
{
int cost = 1;
if (s[i-1] == t[j-1]) 
cost = 0;
k = minimum(
d.get(i-1, j) + 1,  // deletion
d.get(i, j-1) + 1,  // insertion
d.get(i-1, j-1) + cost  // substitution
);
// transposition  ab -> ba
if (i > 1 && j > 1 && s[i-1] == t[j-2] && s[i-2] == 
t[j-1])
k = minimum(
k,
d.get(i-2, j-2) + cost  // transposition
);
d.set(i, j, k);
}
}
return k;//d.get(m,n);
}

unittest
{
assert(LevenshteinDistance("hello", "hello") == 0);//nop
assert(LevenshteinDistance("hello", "helo") == 1);//del
assert(LevenshteinDistance("hello", "heello") == 1);//ins
assert(LevenshteinDistance("hello", "hallo") == 1);//change
assert(LevenshteinDistance("hello", "hlelo") == 1);//transp
assert(LevenshteinDistance("hello", "hlelq") == 2);
}

import std.stdio;
void main(string[] args) {
  writefln("%s", LevenshteinDistance(args[1], args[2]));
}

Re: dmd 1.060 and 2.045 release

2010-05-08 Thread Lionello Lunesu
That code is in the public domain, by the way.

DMD should require a copyright notice in each source file :)

L.


Re: dmd 1.060 and 2.045 release

2010-05-06 Thread Lionello Lunesu
On 7-5-2010 9:10, Brad Roberts wrote:
> On Fri, 7 May 2010, Lionello Lunesu wrote:
> 
>> On 6-5-2010 22:37, Michel Fortin wrote:
>>> On 2010-05-05 23:45:50 -0400, Walter Bright 
>>> said:
>>>
>>>> Walter Bright wrote:
>>>>> Alex Makhotin wrote:
>>>>>> It takes ~40 seconds 50% load on the dual core processor(CentOS 5.3
>>>>>> kernel 2.6.32.4), to get the actual error messages about the
>>>>>> undefined identifier.
>>>>>
>>>>> Definitely there's a problem.
>>>>
>>>> The problem is the spell checker is O(n*n) on the number of characters
>>>> in the undefined identifier.
>>>
>>> That's an algorithm that can't scale then.
>>>
>>> Checking the Levenshtein distance for each known identifier within a
>>> small difference in length would be a better idea. (Clang is said to use
>>> the Levenshtein distance, it probably does something of the sort.)
>>>
>>> http://en.wikipedia.org/wiki/Levenshtein_distance
>>>
>> and especially this line:
>>
>> # If we are only interested in the distance if it is smaller than a
>> threshold k, then it suffices to compute a diagonal stripe of width 2k+1
>> in the matrix. In this way, the algorithm can be run in O(kl) time,
>> where l is the length of the shortest string.
> 
> The source for this is pretty isolated.. anyone want to volunteer take a 
> shot at improving this part of dmd?
> 
> Later,
> Brad
I see, speller.c, I'll have a look..


Re: dmd 1.060 and 2.045 release

2010-05-06 Thread Lionello Lunesu
On 6-5-2010 22:37, Michel Fortin wrote:
> On 2010-05-05 23:45:50 -0400, Walter Bright 
> said:
> 
>> Walter Bright wrote:
>>> Alex Makhotin wrote:
 It takes ~40 seconds 50% load on the dual core processor(CentOS 5.3
 kernel 2.6.32.4), to get the actual error messages about the
 undefined identifier.
>>>
>>> Definitely there's a problem.
>>
>> The problem is the spell checker is O(n*n) on the number of characters
>> in the undefined identifier.
> 
> That's an algorithm that can't scale then.
> 
> Checking the Levenshtein distance for each known identifier within a
> small difference in length would be a better idea. (Clang is said to use
> the Levenshtein distance, it probably does something of the sort.)
> 
> http://en.wikipedia.org/wiki/Levenshtein_distance
> 
and especially this line:

# If we are only interested in the distance if it is smaller than a
threshold k, then it suffices to compute a diagonal stripe of width 2k+1
in the matrix. In this way, the algorithm can be run in O(kl) time,
where l is the length of the shortest string.


Re: Visual D released

2010-04-18 Thread Lionello Lunesu
On 18-4-2010 23:06, Rainer Schuetze wrote:
> Hello,
> 
> I'd like to announce the initial release of Visual D, a Visual Studio
> package providing both project management and language services for
> integration of the D programming language into Visual Studio.
> 
> Here are some features:
> 
> * Project management
>   o all DMD command line options accessible
>   o support for resource compiler
>   o custom build commands
>   o pre/post custom build steps
>   o automatic dependency generation
>   o automatic link between dependent projects
>   o integrates cv2pdb for seamless debugger integration
>   o new project templates
> 
> * Language Service
>   o syntax highlighting
>   o simple word-completion
>   o import statement completion
>   o goto definition (using JSON file from compilation)
>   o smart indentation
>   o highlight/jump-to matching braces
>   o code snippets
> 
> * Supported Visual Studio versions
>   o VS 2005, VS 2008
>   o with some limitations: VS.NET 2003, VS 2010
> 
> * Easy installer for hassle-free installation
> 
> And for the fun and frustration: Visual D is completely written in D.
> 
> Visual D can be downloaded from http://www.dsource.org/projects/visuald
> 
> This project is still at an early stage, so you might notice a lot of
> rough edges. You can find a list of known issues on the feature-page.
> Any feedback is welcome.
> 
> Enjoy,
> Rainer

Amazing! Congratulations!

L.


Re: April 13th: Presenting D at the Beijing Linux User Group

2010-04-15 Thread Lionello Lunesu
On 14-4-2010 22:45, Moritz Warning wrote:
> Thank you for sharing!

You're welcome. Feel free to use them as a basis for whatever you want.

L.


Re: April 13th: Presenting D at the Beijing Linux User Group

2010-04-15 Thread Lionello Lunesu
On 15-4-2010 13:50, Walter Bright wrote:
> Lionello Lunesu wrote:
>> The presentation came and went, and was much appreciated, judging from
>> the reactions :)
> 
> Great! I hope you enjoyed it as well.

Yup, it was fun, and I've learned a lot doing it.

Hope I've managed to turn some more people to D as well :)

L.


Re: April 13th: Presenting D at the Beijing Linux User Group

2010-04-14 Thread Lionello Lunesu
On 10-3-2010 8:11, Lionello Lunesu wrote:
> I'll be presenting the D Programming Language at the next monthly BLUG
> meeting. It'll mostly be for people who haven't heard of D yet. There'll
> be a fair chunk of D1 in there, but I'm hoping to touch some of D2's new
> features as well.
> 
> These meetings are free for everyone to attend, so come by if you live
> in Beijing, or you happen to be there.
> 
> More information at http://tinyurl.com/y9ttldt
> 
> See you there!
> 
> Lionello.
> 
> (I'm fairly new to 'presenting stuff' in general, so all tips are highly
> welcomed.)

The presentation came and went, and was much appreciated, judging from
the reactions :)

My slides can be downloaded from http://lunesu.com/uploads/DforBLUG1.odp

L.


Re: April 13th: Presenting D at the Beijing Linux User Group

2010-03-10 Thread Lionello Lunesu
On 10-3-2010 10:07, Andrei Alexandrescu wrote:
> Lionello Lunesu wrote:
>> On 10-3-2010 8:35, Walter Bright wrote:
>>> Lionello Lunesu wrote:
>>>> I'll be presenting the D Programming Language at the next monthly BLUG
>>>> meeting. It'll mostly be for people who haven't heard of D yet.
>>>> There'll
>>>> be a fair chunk of D1 in there, but I'm hoping to touch some of D2's
>>>> new
>>>> features as well.
>>> Awesome!
>>>
>>>
>>>> (I'm fairly new to 'presenting stuff' in general, so all tips are
>>>> highly
>>>> welcomed.)
>>> I've noticed that things seem to go better if the presenter tries to
>>> engage the audience by asking them questions thereby inviting more of a
>>> group discussion, as opposed to just reading the slides to them.
>>
>> Good tip, thanks.
>>
>> I'm wondering: should I do the 'scrolling HTML', in true D style? The
>> lazy part of me says yes :))
> 
> I suggest not. When you'll be more experienced you'll be able to make-do
> even with the white board, but for now focus on preparing good slides
> and rehearsing them.

Hmm, yes.

> Walter's advice is good. Plus: make sure through rehearsing that your
> material fits within the allotted time.

Well, I noticed that most other presentations I've attended did indeed
go over time and not by a small amount either. So, apparently it's very
hard to stay within a certain time? Or, once you're standing there and
'get in the zone' you forget about the time?

I don't have a watch, but it seems that I might need one then.

L.


Re: April 13th: Presenting D at the Beijing Linux User Group

2010-03-09 Thread Lionello Lunesu
On 10-3-2010 10:01, Moritz Warning wrote:
> On Wed, 10 Mar 2010 08:47:00 +0800, Lionello Lunesu wrote:
> 
>> On 10-3-2010 8:35, Walter Bright wrote:
>>> Lionello Lunesu wrote:
>>>> I'll be presenting the D Programming Language at the next monthly BLUG
>>>> meeting. It'll mostly be for people who haven't heard of D yet.
>>>> There'll be a fair chunk of D1 in there, but I'm hoping to touch some
>>>> of D2's new features as well.
>>>
>>> Awesome!
>>>
>>>
>>>> (I'm fairly new to 'presenting stuff' in general, so all tips are
>>>> highly welcomed.)
>>>
>>> I've noticed that things seem to go better if the presenter tries to
>>> engage the audience by asking them questions thereby inviting more of a
>>> group discussion, as opposed to just reading the slides to them.
>>
>> Good tip, thanks.
>>
>> I'm wondering: should I do the 'scrolling HTML', in true D style? The
>> lazy part of me says yes :))
> 
> Try to make page1.html, page2.html .. :>

Yes, I'll go the PDF way, with real pages :)


Re: April 13th: Presenting D at the Beijing Linux User Group

2010-03-09 Thread Lionello Lunesu
On 10-3-2010 8:35, Walter Bright wrote:
> Lionello Lunesu wrote:
>> I'll be presenting the D Programming Language at the next monthly BLUG
>> meeting. It'll mostly be for people who haven't heard of D yet. There'll
>> be a fair chunk of D1 in there, but I'm hoping to touch some of D2's new
>> features as well.
> 
> Awesome!
> 
> 
>> (I'm fairly new to 'presenting stuff' in general, so all tips are highly
>> welcomed.)
> 
> I've noticed that things seem to go better if the presenter tries to
> engage the audience by asking them questions thereby inviting more of a
> group discussion, as opposed to just reading the slides to them.

Good tip, thanks.

I'm wondering: should I do the 'scrolling HTML', in true D style? The
lazy part of me says yes :))


April 13th: Presenting D at the Beijing Linux User Group

2010-03-09 Thread Lionello Lunesu
I'll be presenting the D Programming Language at the next monthly BLUG
meeting. It'll mostly be for people who haven't heard of D yet. There'll
be a fair chunk of D1 in there, but I'm hoping to touch some of D2's new
features as well.

These meetings are free for everyone to attend, so come by if you live
in Beijing, or you happen to be there.

More information at http://tinyurl.com/y9ttldt

See you there!

Lionello.

(I'm fairly new to 'presenting stuff' in general, so all tips are highly
welcomed.)


Re: Function implementation in interface

2010-01-30 Thread Lionello Lunesu
On 30-1-2010 15:53, The Anh Tran wrote:
> First, i would like to say: thank you.
> 
> Second, i would like to have your opinion:
> "added static/final function implementations to interfaces"
> 
> Could you allow normal function imp to interfaces too? Interface will
> look like c++ struct, but the difference is the way inheritance
> organized, so that diamond shape problem does not exist.

Use "final".

L.


Re: another d demoscene entry

2009-10-12 Thread Lionello Lunesu

On 12-10-2009 12:30, Nick Sabalausky wrote:

"#ponce"  wrote in message
news:hatvh5$gq...@digitalmars.com...

Hi,

We won another demo compo with a D entry (at MAIN demoparty)
http://www.pouet.net/prod.php?which=53942

We tried to make a bigger and more impressive entry this time. Note that
it's a french party so it's not Breakpoint.

D clearly allowed us to be more productive without a demotool. Still,
mature demotools are one order of magnitude more productive (and awfully
long to make). To be honest i don't expect demosceners to switch so easily
from C++ but it could encourage some newcomers (like us) with a small code
base.

I just released the source (again under WTFPL).
http://adinpsz.org/data/az-02_-_Extatique_src.zip


"az02.exe" crashed upon starting with no error/warning in the log.


Same here. Do you also use an intel x3100 graphics card?

L.



Re: dmd 1.046 and 2.031 releases

2009-07-07 Thread Lionello Lunesu


"Walter Bright"  wrote in message 
news:h2s0me$30f...@digitalmars.com...

Something for everyone here.


http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.046.zip


http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.031.zip


Great release, thanks to all those that have contributed to it!

Walter, since the lib/include folders were split according to OS, the dmd2 
zip consistently has an extensionless "lib" file in the dmd2 folder.


This is because of the 'install' target in win32.mak that would previously 
copy phobos.lib and gcstub.obj to the lib folder, but now copies their 
contents to a file called "lib" instead.


I've made a patch and attached it to 
http://d.puremagic.com/issues/show_bug.cgi?id=3153


L. 



Re: TDPL available for preorder on amazon.com

2009-06-10 Thread Lionello Lunesu


"Andrei Alexandrescu"  wrote in message 
news:h0ng7m$ki...@digitalmars.com...

Hope you like the cover - my sister's art.

http://tinyurl.com/lyrsyk

Andrei


Congratulations!

One giant leap for D. (And probably wasn't a small step for you either.)

L.

($10 delivery!? 17-28 business days!?!? Argh) 



Re: Boost.ScopeExit based on D's scope(exit)

2009-03-02 Thread Lionello Lunesu


"Andrei Alexandrescu"  wrote in message 
news:goh9ao$96...@digitalmars.com...

Leandro Lucarella wrote:

Boost 1.38.0 includes a new library ScopeExit:
http://www.boost.org/users/news/version_1_38_0

This library is based on D's scope(exit) according to the documentation,
see at the end of the link:
http://www.boost.org/doc/libs/1_38_0/libs/scope_exit/doc/html/scope_exit/alternatives.html



Cool. I confess I'm mildly miffed. In the "Acknowledge" section (sic) 
yours truly is being acknowledged "for pointing me to scope(exit) 
construct of the D  programming language." In the Alternatives section 
there's an unatrributed link to the ScopeGuard article. My understanding 
of ScopeExit looks much more inspired and derivative from ScopeGuard than 
a distinct artifact, something that goes entirely unacknowledged.


For some reason ScopeGuard and scope(exit) consistently escapes proper 
acknowledgments. Petru Marginean and I introduced the concept in C++ and 
argued for its usefulness. I invented the gorram scope(exit) statement for 
D, and Walter almost forgot to acknowledge me. And now this. What are you 
going to do...


Hey, at least you got explicitely quoted in the page's header:

"...one of the most highly regarded and expertly designed C++ library 
projects in the world." - Herb Sutter and Andrei Alexandrescu, C++ Coding 
Standards


L.

PS: my god, I remember why I hate c++ and boost.. I've been clean (of C++) 
for 1 year now, and it feels great.





Re: Just one more thing...

2009-02-15 Thread Lionello Lunesu


"Walter Bright"  wrote in message 
news:gn78ho$hm...@digitalmars.com...

Now includes Mac OSX version!

http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.040.zip


http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.025.zip

Expect bugs. Thread local storage isn't working on OSX, neither are 
sockets and memory mapped files (for unknown reasons).


Thanks to Sean Kelly for a lot of help on the runtime library with this.


dmd.2.025.zip has a file called "lib" (no extension) in the dmd folder. 
Sounds like a copy something \dmd\lib ? Its size is similar to gcstub.obj, 
is that it?


L. 



Re: DMD 1.037 and 2.020 releases

2008-11-25 Thread Lionello Lunesu


"Walter Bright" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]


http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.037.zip



http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.021.zip



Nice update!

The 2.021.zip contains a folder dmd/src/runtime and dmd/src/druntime.. Is 
one of them obsolete? Which one?


L. 



Re: DMD 1.036 and 2.020 releases

2008-10-20 Thread Lionello Lunesu


"Yigal Chripun" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

You've posted in the NG your intention to re-implement several key
modules in phobos including IO and algorithm, I'm hoping that instead of
two separate IO systems (tango and phobos) you could use the Tango IO
and implement your Range proposal on top of it. Others already suggested
that on this NG.


There are good reasons for keeping the IO separate. Phobos is based on the C 
runtime, meaning you can interleave D IO with C IO and everything will 
behave nicely. Tango's IO layer is written from scratch, using OS calls. You 
shouldn't mix Tango IO with IO in a linked-in C library.


L.