Re: code.dlang.org now supports categories and search

2013-11-10 Thread Sönke Ludwig

Am 09.11.2013 18:18, schrieb evilrat:

On Saturday, 9 November 2013 at 17:04:35 UTC, Andrej Mitrovic wrote:


Is it possible to add a feature to sort the view by the added date of
a package (rather than just updated/name sorting)? Sometimes I'd like
to see which packages are new in the registry.


that would be really useful. who knows when something interresting added
to dub, this would allow to see...


I've also thought about that in the past days, shouldn't be difficult to 
add (an RSS feed could also be interesting).


Re: Visual D 0.3.37 released

2013-11-10 Thread evilrat
On Sunday, 10 November 2013 at 07:13:26 UTC, Nicholas Londey 
wrote:
Have a look at this and see if that helps. I think I got it 
working in vs2013 because it was the announcement that it 
should be working that prompted me to find out why it wasn't.


http://d.puremagic.com/issues/show_bug.cgi?id=11457


i see sc.ini points to x64 vc\bin path, replaced with path to x86 
bin and still not works.


p.s. also please fix custom type coloring depending on visual 
studio style, with dark color scheme custom types(string, object, 
etc.) is unreadable even on good ips display. i think it would be 
better to set it to something like light blue as VC does with 
basic types.


Re: Visual D 0.3.37 released

2013-11-10 Thread evilrat

ok i forgot about output pane. so what i see here...

ConsoleApp1\Debug\ConsoleApp1.pdb: cannot load PDB helper DLL


Re: code.dlang.org now supports categories and search

2013-11-10 Thread Rory McGuire
Would be nice if you could subscribe to a daily/weekly mail of the new
/updated packages .
On 10 Nov 2013 10:25, Sönke Ludwig slud...@outerproduct.org wrote:

 Am 09.11.2013 18:18, schrieb evilrat:

 On Saturday, 9 November 2013 at 17:04:35 UTC, Andrej Mitrovic wrote:


 Is it possible to add a feature to sort the view by the added date of
 a package (rather than just updated/name sorting)? Sometimes I'd like
 to see which packages are new in the registry.


 that would be really useful. who knows when something interresting added
 to dub, this would allow to see...


 I've also thought about that in the past days, shouldn't be difficult to
 add (an RSS feed could also be interesting).



DStep 0.1.0 - Automatic C and Objective-C binding generator

2013-11-10 Thread Jacob Carlborg
I just released a new version of DStep, 0.1.0. The biggest news for this 
release is the support for new platforms. DStep is now available on Mac 
OS X, Linux and FreeBSD. On all of these platforms both 32bit and 64bit 
architectures are supported.


For pre-compiled binaries and changelog (or below) see: 
https://github.com/jacob-carlborg/dstep/releases/tag/v0.1.0


For those not familiar with DStep:

DStep is a tool for translating C and Objective-C headers to D modules. 
It uses libclang for lexing, parsing and AST traversal. This means it 
handles everything that Clang itself can handle, although this doesn't 
mean it will correctly translate everything.


Changelog:

Version 0.1.0
  New/Changed Features
* Add support for compiling as 64bit
* Removed printing of output to stdout
* Add support for and FreeBSD (32 and 64bit)
* Infer the output filename of the input filename
* Make arguments more consistent

Objective-C
  * Support for properties
  * Support for protocols
  * Support for categories

  Bugs Fixed
* Issue 1: Escape D keywords for function parameters
* Issue 5: Forward declaration of structures
* Issue 4: Handle typedefs of empty struct

--
/Jacob Carlborg


std.templatecons ready for comments

2013-11-10 Thread Ilya Yaroshenko

Hello!

std.templatecons: Functional style template constructors.

Documentation:
http://9il.github.io/phobosx/std.templatecons.html

Source:
https://github.com/9il/phobosx/blob/master/std/templatecons.d

Note:
dmd = 2.64 required

Thread for comments:
http://forum.dlang.org/thread/etoraglamxaiivqjz...@forum.dlang.org

Best Regards,
Ilya Yaroshenko


Re: DStep 0.1.0 - Automatic C and Objective-C binding generator

2013-11-10 Thread Dicebot

https://www.archlinux.org/packages/?q=dstep


Re: std.templatecons ready for comments

2013-11-10 Thread Dicebot
Had a very quick run-through the provided functionality. Looks 
nice and has some of utilities I tend to reinvent in my own code 
when doing meta-programming. Though I'd prefer to initiate 
creation of nested `std.meta` package and move such stuff there 
instead of adding yet another plain module. Also I am trying to 
negotiate with Andrei  Walter into deciding std.typetuple fate 
which may impact implementation of such module quite a lot :)


Re: code.dlang.org now supports categories and search

2013-11-10 Thread Andrej Mitrovic
On 11/10/13, Sönke Ludwig slud...@outerproduct.org wrote:
 I've also thought about that in the past days, shouldn't be difficult to
 add (an RSS feed could also be interesting).

I didn't want to appear needy, but yes an RSS feed would be awesome.


The D in Novosibirsk State University

2013-11-10 Thread Michael

Yes, Russia)

Topic: The D Programming Language: features and application.
Author: Nikolai Tolstokulakov.

Event: NSU Tech Talks
Date: Nov 05, 2013

Slides: 
https://speakerdeck.com/techtalksnsu/iazyk-proghrammirovaniia-d-nikolai-tolstokulakov


Tweet: https://twitter.com/TechTalksNSU/status/397378969156075521


Re: The D in Novosibirsk State University

2013-11-10 Thread Ilya Yaroshenko

On Sunday, 10 November 2013 at 20:05:29 UTC, Michael wrote:

Yes, Russia)

Topic: The D Programming Language: features and application.
Author: Nikolai Tolstokulakov.

Event: NSU Tech Talks
Date: Nov 05, 2013

Slides: 
https://speakerdeck.com/techtalksnsu/iazyk-proghrammirovaniia-d-nikolai-tolstokulakov


Tweet: 
https://twitter.com/TechTalksNSU/status/397378969156075521


Wow, Great! MSU switched from Pascal to C and from 16-bit MASM to
32-bit fasm one year ago :-(.

I hope Academic City has more flexible program)

Please post it in СУНЦ НГУ!

Best Regards,
Ilya


Re: The D in Novosibirsk State University

2013-11-10 Thread Froglegs

 Slides are in English, do most Russian programmers speak English?


Re: The D in Novosibirsk State University

2013-11-10 Thread Dicebot

On Sunday, 10 November 2013 at 23:19:22 UTC, Froglegs wrote:
 Slides are in English, do most Russian programmers speak 
English?


No. However, most really interested in programming technology do. 
Pretty much as in any other part of the world.


Re: The D in Novosibirsk State University

2013-11-10 Thread Marco Leise
Am Mon, 11 Nov 2013 00:35:09 +0100
schrieb Dicebot pub...@dicebot.lv:

 On Sunday, 10 November 2013 at 23:19:22 UTC, Froglegs wrote:
   Slides are in English, do most Russian programmers speak 
  English?
 
 No. However, most really interested in programming technology do. 
 Pretty much as in any other part of the world.

Reminds me how I ended up in a 100% Russian bug tracker once,
when I wanted to report a bug for a big, world-wide online game
with localizations into 8 or more languages. In the end I used
Google translate. (They do offer technical support in English,
but I didn't want to deal with 1st level support and have
mails going forth and back just to report an obvious bug. :p)

-- 
Marco



Re: dchip is a D2 port of the Chipmunk2D physics library for 2D games

2013-11-10 Thread Sergei Nosov

On Friday, 8 November 2013 at 04:39:11 UTC, Andrej Mitrovic wrote:

On 11/8/13, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
Anyway in -release -inline -O -noboundscheck mode the sample 
now works

perfectly smooth!


Well, as long as you use float and not double via
-version=CHIP_USE_DOUBLES . Chipmunk actually uses doubles by 
default,
although I'm not sure whether it uses reals for computations 
(more
specifically, whether VC/C++ uses reals). So there's a 
difference

there.


I've done some experiments regarding dmd/ldc comparison.

Machine: Ubuntu 12.04 (x86_64), Intel® Core™ i5-3470 CPU @ 
3.20GHz × 4
Compilers: DMD64 D Compiler v2.064, LDC - the LLVM D compiler 
(0.12.0):

  based on DMD v2.063.2 and LLVM 3.3.1
  Default target: x86_64-unknown-linux-gnu
  Host CPU: core-avx-i

I've made 2 builds:
$ dub --build=release
$ dub --build=release --compiler=ldc2

And 2 runs of
new_demo -bench -trial
(note, I've modified the source to make both keys usable 
simultaneously)
It runs a 1000 iteration for every demo in 'bench' set and prints 
it's time in ms.


DMD output:
5105.89
2451.94
477.079
12709.9
4259.14
775.686
8842.77
4233.86
784.804
939.7
1643.85
1589.28
5368.47
11042.3
380.893
740.671
9.53658

LDC output:
4645.74
2236.77
434.833
10483.6
3577.5
693.307
7339.49
3445.02
627.396
856.486
1291.23
1333.11
4831.46
9002.18
361.624
605.19
9.64545

So, the ratio is something like 0.81-0.83 in favor of ldc.