Re: Can we ease WASM in D ?

2022-11-16 Thread bioinfornatics via Digitalmars-d-learn
Thanks Adam, H. S., max for your point of view On Wednesday, 16 November 2022 at 23:23:48 UTC, Adam D Ruppe wrote: On Wednesday, 16 November 2022 at 23:16:26 UTC, H. S. Teoh wrote: You mean with Phobos and everything included? I think there may be issues with that... Yes that would be

Can we ease WASM in D ?

2022-11-16 Thread bioinfornatics via Digitalmars-d-learn
Dear community, I look some day ago to the D wasm page: -> https://wiki.dlang.org/Generating_WebAssembly_with_LDC And since then I ask myself can we at compile time convert a D code to an extern C code for wasm ? Indeed, if a library/framework would wrap this to let end user write his

Re: CalderaD - SDL2 Vulkan renderer for windows, linux, and android

2021-05-14 Thread bioinfornatics via Digitalmars-d-announce
On Friday, 14 May 2021 at 17:38:54 UTC, Danny Arends wrote: On Friday, 14 May 2021 at 17:29:13 UTC, evilrat wrote: On Friday, 14 May 2021 at 16:39:53 UTC, Danny Arends wrote: Find the GPL-v3 licensed code here: https://github.com/DannyArends/CalderaD You can set up platform filters in

How DerelictCL works

2020-07-21 Thread bioinfornatics via Digitalmars-d-learn
Dear, I would like to use OpenCL in D. Thus I try to use DerelictCL. But I fail to use it I encounter this error message: -- /opt/jonathan/jonathan-dlang_ldc2092/root/usr/include/d/derelict/opencl/constants.di(835): Error: genCLVectorTypes cannot be interpreted at compile time,

Re: Using an async buffer

2019-11-08 Thread bioinfornatics via Digitalmars-d-learn
On Friday, 8 November 2019 at 14:32:25 UTC, bioinfornatics wrote: On Friday, 8 November 2019 at 08:58:36 UTC, bioinfornatics wrote: [...] I do not have found yet why the line counter is false. I can tell if the amount to read imply that the last read is not not strictly equal to the buffer

Re: Using an async buffer

2019-11-08 Thread bioinfornatics via Digitalmars-d-learn
On Friday, 8 November 2019 at 08:58:36 UTC, bioinfornatics wrote: the error message was understandable to me, ... the error message was not understandable to me ... I do not have found yet why the line counter is false. I can tell if the amount to read imply that the last read is not not

Re: Using an async buffer

2019-11-08 Thread bioinfornatics via Digitalmars-d-learn
On Friday, 8 November 2019 at 01:12:37 UTC, Ali Çehreli wrote: On 11/07/2019 07:07 AM, bioinfornatics wrote: > Dear, > > I try to use the async buffer describe into std.parallelism > documentation but my test code core dump! I admit I don't fully understand the lifetime issues but removing the

Re: Using an async buffer

2019-11-08 Thread bioinfornatics via Digitalmars-d-learn
the error message was understandable to me, ... the error message was not understandable to me ...

Using an async buffer

2019-11-07 Thread bioinfornatics via Digitalmars-d-learn
Dear, I try to use the async buffer describe into std.parallelism documentation but my test code core dump! documentation: https://dlang.org/phobos/std_parallelism.html#.TaskPool.asyncBuf.2 snipptet: https://paste.fedoraproject.org/paste/K5W1O1dLzZ0sPV8NeGztUg Trace: $ gdb test (gdb) r

Re: Using shared memory and thread

2019-11-05 Thread bioinfornatics via Digitalmars-d-learn
On Tuesday, 5 November 2019 at 00:07:40 UTC, bioinfornatics wrote: On Tuesday, 5 November 2019 at 00:04:05 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 22:19:29 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics wrote: On Monday, 4 November 2019

Re: Using shared memory and thread

2019-11-04 Thread bioinfornatics via Digitalmars-d-learn
On Tuesday, 5 November 2019 at 00:04:05 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 22:19:29 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics wrote: [...] One image reveals

Re: Using shared memory and thread

2019-11-04 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 4 November 2019 at 22:19:29 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics wrote: Dear, I would like to put a buffer `shared(char[])` into a shared memory ( L2 cache ) and

Re: Using shared memory and thread

2019-11-04 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics wrote: On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics wrote: Dear, I would like to put a buffer `shared(char[])` into a shared memory ( L2 cache ) and provide a start and end index to multiple thread in order to perform

Re: Using shared memory and thread

2019-11-04 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics wrote: Dear, I would like to put a buffer `shared(char[])` into a shared memory ( L2 cache ) and provide a start and end index to multiple thread in order to perform computation on a piece of original buffer. [...] One image

Using shared memory and thread

2019-11-04 Thread bioinfornatics via Digitalmars-d-learn
Dear, I would like to put a buffer `shared(char[])` into a shared memory ( L2 cache ) and provide a start and end index to multiple thread in order to perform computation on a piece of original buffer. I read doc from std.concurrency, std.parallelism, core.thead (druntime) and

Re: Gtkd and libgtksourceview

2019-10-30 Thread bioinfornatics via Digitalmars-d-learn
On Wednesday, 30 October 2019 at 22:26:41 UTC, Mike Wey wrote: On 30-10-2019 20:17, Ron Tarrant wrote: [...] Thanks. [...] The installer could use an update, Sourceview 4 is available for windows. [...] For windows there isn't an easy command to regenerate the source, but running

Gtkd and libgtksourceview

2019-10-30 Thread bioinfornatics via Digitalmars-d-learn
Dear, I tried the latest gtkd release and it try to open dynamically libgtksourceview-4.so.0 however I have only libgtksourceview-3.so.1 so which version should I used to be compatible with libgtksourceview-3 (I use centos 7) Code: $ ldc2 container_014_10_notebook_basic.d

Re: Packaging and Distributing Dlang Applications with GtkD Dependency?

2019-09-26 Thread bioinfornatics via Digitalmars-d-learn
On Thursday, 26 September 2019 at 10:07:34 UTC, bioinfornatics wrote: On Wednesday, 25 September 2019 at 17:03:51 UTC, Ron Tarrant wrote: On Wednesday, 25 September 2019 at 13:52:48 UTC, bioinfornatics wrote: I think I misunderstood your need but are lo looking for dub tool with its

Re: Packaging and Distributing Dlang Applications with GtkD Dependency?

2019-09-26 Thread bioinfornatics via Digitalmars-d-learn
On Wednesday, 25 September 2019 at 17:03:51 UTC, Ron Tarrant wrote: On Wednesday, 25 September 2019 at 13:52:48 UTC, bioinfornatics wrote: I think I misunderstood your need but are lo looking for dub tool with its repository https://code.dlang.org/ I don't think so, but I could be wrong. I

Re: Packaging and Distributing Dlang Applications with GtkD Dependency?

2019-09-25 Thread bioinfornatics via Digitalmars-d-learn
On Wednesday, 25 September 2019 at 11:46:04 UTC, Ron Tarrant wrote: Hi y'all, I've been Googling how to do this, but coming up with nothing definitive. Are there any articles for how to do this for: Windows? Linux? other UNIX-alike OSs? I think I misunderstood your need but are lo looking

Re: Question about D hirearchy and include directory

2018-10-16 Thread bioinfornatics via Digitalmars-d
On Sunday, 14 October 2018 at 12:14:06 UTC, bioinfornatics wrote: Dear, Some projects seem to have an extra directory for their include directory, such as: - stdx-allocator - containers - msgpack - dparse ... [...] up

Question about D hirearchy and include directory

2018-10-14 Thread bioinfornatics via Digitalmars-d
Dear, Some projects seem to have an extra directory for their include directory, such as: - stdx-allocator - containers - msgpack - dparse ... To draw the picture, I take as example the containers project and build using meson: $ ls /usr/include/d/containers/containers/ cyclicbuffer.d

Re: Symmetry Autumn of Code

2018-08-06 Thread bioinfornatics via Digitalmars-d-announce
On Saturday, 14 July 2018 at 06:02:37 UTC, Mike Parker wrote: Thanks to the sponsorship of Symmetry Investments, the D Language Foundation is happy to announce the Symmetry Autumn of Code! We're looking for three university students to hack on D this autumn, from September - January. We're

Re: When did gdc and ldc start?

2018-08-01 Thread bioinfornatics via Digitalmars-d
On Wednesday, 1 August 2018 at 13:49:30 UTC, bioinfornatics wrote: On Tuesday, 31 July 2018 at 02:30:12 UTC, Walter Bright wrote: I'm trying to pin down an accurate timeline of D ldc2 compiler and D environnment language was introduce in fedora 16 (2011)

Re: When did gdc and ldc start?

2018-08-01 Thread bioinfornatics via Digitalmars-d
On Tuesday, 31 July 2018 at 02:30:12 UTC, Walter Bright wrote: I'm trying to pin down an accurate timeline of D ldc2 compiler and D environnment language was introduce in fedora 16 (2011) https://fedoraproject.org/wiki/Features/D2_programming

Re: D GPU execution module: A survey of requirements.

2018-05-14 Thread bioinfornatics via Digitalmars-d
On Thursday, 10 May 2018 at 07:25:32 UTC, Nicholas Wilson wrote: On Thursday, 10 May 2018 at 00:10:07 UTC, H Paterson wrote: On Wednesday, 9 May 2018 at 23:37:14 UTC, Henry Gouk wrote: On Wednesday, 9 May 2018 at 23:26:19 UTC, H Paterson wrote: Hello, I'm interested in writing a module for

Re: iopipe v0.0.4 - RingBuffers!

2018-05-14 Thread bioinfornatics via Digitalmars-d-announce
On Thursday, 10 May 2018 at 23:22:02 UTC, Steven Schveighoffer wrote: OK, so at dconf I spoke with a few very smart guys about how I can use mmap to make a zero-copy buffer. And I implemented this on the plane ride home. However, I am struggling to find a use case for this that showcases why

Re: [dub] How to specify with dub a custom repository and build directory ?

2018-05-03 Thread bioinfornatics via Digitalmars-d
On Thursday, 3 May 2018 at 15:30:28 UTC, rikki cattermole wrote: On 04/05/2018 3:27 AM, bioinfornatics wrote: [...] dub doesn't do platform specific installing. It just handles building. What you want is out of scope and has been discussed. Ok but as all D projects can be built only with

[dub] How to specify with dub a custom repository and build directory ?

2018-05-03 Thread bioinfornatics via Digitalmars-d
Dear, As 99% of d project use dub as build and package manager. I would like to know how to use D libraries and D software shared to all user on linux architecture ? When I run: dub fetch A .dub directory is created into $HOME. I tried to provide another directory with --root parameter

Fail to build ldc with a llvm SPIR-V enabled

2018-04-27 Thread bioinfornatics via Digitalmars-d
Dear, After to build the llvm lib from https://github.com/thewilsonator/llvm . I tried to build ldc2 with v1.9-beta1 /ldc2-1.9/tools/ldc-profdata/llvm-profdata-5.0.cpp:175:6: error: no matching function for call to

Re: which LLVM source should I use in order to use SPIRV through DCompute ?

2018-04-27 Thread bioinfornatics via Digitalmars-d
On Thursday, 26 April 2018 at 23:06:54 UTC, Nicholas Wilson wrote: On Thursday, 26 April 2018 at 22:51:59 UTC, bioinfornatics wrote: Dear, Dcompute: https://github.com/libmir/dcompute need a SPIRV capable LLVM. For this Dcompute project show https://github.com/thewilsonator/llvm as a SPIRV

which LLVM source should I use in order to use SPIRV through DCompute ?

2018-04-26 Thread bioinfornatics via Digitalmars-d
Dear, Dcompute: https://github.com/libmir/dcompute need a SPIRV capable LLVM. For this Dcompute project show https://github.com/thewilsonator/llvm as a SPIRV capable LLVM. But it is not an official llvm source, moreover the source is outdated. Indeed it provide LLVM 5.0.0 while the current

Re: Linux Game Jam 2018

2018-04-19 Thread bioinfornatics via Digitalmars-d
On Thursday, 5 April 2018 at 18:30:30 UTC, WebFreak001 wrote: Hi guys, I am going to make a game for this years linux game jam hosted by TheLinuxGamer again, last year I made SpaceD[1] Just in case anyone else wants to join too, the link is here (though joining is optional I think)

Re: DCompute is now in the master branch of LDC

2018-04-18 Thread bioinfornatics via Digitalmars-d-announce
On Monday, 19 June 2017 at 12:46:16 UTC, Nicholas Wilson wrote: On Monday, 19 June 2017 at 08:24:09 UTC, bioinfornatics wrote: [...] The library enables you to launch kernels written with the accompanying complier extensions (the focus of this announcement). It also provides the intrinsics

Re: D could catch this wave: web assembly

2017-10-23 Thread bioinfornatics via Digitalmars-d
On Thursday, 18 June 2015 at 08:05:48 UTC, John Colvin wrote: This appears to have involvement from all major browser vendors, which provides hope it might actually catch on properly. An llvm backend will be created which will compile to "wasm", hopefully LDC and/or SDC could glue to this.

Re: DCompute is now in the master branch of LDC

2017-06-19 Thread bioinfornatics via Digitalmars-d-announce
On Monday, 29 May 2017 at 09:33:05 UTC, Nicholas Wilson wrote: Hi all, I'm happy to announce that the dcompute modifications to LDC are now in the master branch of LDC. The dcompute extensions require LLVM 3.9.1 or greater for NVPTX/CUDA and my fork[1] of LLVM for SPIRV. Someone (sorry

Metaprogramming get type and field at compile time

2015-10-27 Thread bioinfornatics via Digitalmars-d-learn
Dear, I use FieldTypeTuple and FieldNameTuple to get type and correponding field name but I fail to loop over these tuple. As example: struct Person{ private string name; private ushort age; private bool isMale; this(string name, ushort age, bool isMale){

Re: Metaprogramming get type and field at compile time

2015-10-27 Thread bioinfornatics via Digitalmars-d-learn
On Tuesday, 27 October 2015 at 22:53:35 UTC, Ali Çehreli wrote: On 10/27/2015 03:34 PM, bioinfornatics wrote: > I use FieldTypeTuple and FieldNameTuple to get type and correponding > field name but I fail to loop over these tuple. You can use the .tupleof property and a compile-time foreach:

Re: Would a DSpin or DLab for Fedora make sense?

2015-10-12 Thread bioinfornatics via Digitalmars-d
On Sunday, 11 October 2015 at 13:27:12 UTC, Idan Arye wrote: On Friday, 9 October 2015 at 18:10:59 UTC, tim wrote: [...] I doubt it'll be a good idea. These bundles seem to target areas of interest, never specific languages. You can see bundles geared towards graphic designers or gamers,

Re: How to partially forward properties of struct array member to struct (disable length property) ?

2015-09-06 Thread bioinfornatics via Digitalmars-d-learn
On Sunday, 6 September 2015 at 07:34:36 UTC, ParticlePeter wrote: I am working on a struct vector. The data is stored in a member static array and I want to be able to forward all array properties except length to vector. Reason is I have free functions f that take vector(s) as arguments, such

Re: The most awesome forward to member solution?

2015-05-05 Thread bioinfornatics via Digitalmars-d
That is not exactly what I requested years ago --- http://forum.dlang.org/thread/1330792937.10754.7.camel@jonathan

Re: DDMD is now in the master branch

2015-04-08 Thread bioinfornatics via Digitalmars-d
Good news, little question as ddmd generate a code does this means that ddmd backend and frontend is full open source under boost license? regards

Re: Which D IDE do you use?(survey)

2015-04-08 Thread bioinfornatics via Digitalmars-d
On Tuesday, 7 April 2015 at 22:58:44 UTC, weaselcat wrote: Hi, I hope nobody minds but I'm just curious as to the popularity amongst D IDEs for a blog post. Sorry if I forgot your favorite $editor. http://goo.gl/forms/MmsuInzDL0 thanks : ) It seem now intellij support D lang. I use it for

Re: D, Python, and Chapel

2015-04-06 Thread bioinfornatics via Digitalmars-d
On Friday, 3 April 2015 at 10:18:11 UTC, Russel Winder wrote: Chapel 1.11 just got release and they are making a big play on the integration of Chapel with Python. This could be huge and potentially disrupt the complacency of the NumPy based folk. Chapel is a rather pleasant PGAS language

Re: Making byLine faster: we should be able to delegate this

2015-03-31 Thread bioinfornatics via Digitalmars-d
Little ping I hope an answer about IO in D and disruptor form java world Disruptor seem to provide a smart implementation between IO and their buffer. What did you think about it? D could to provided a high level way to process efficiently a file. (using Range, forwardrange ... will be

Re: [OT]: Congrats Andrei!

2015-03-28 Thread bioinfornatics via Digitalmars-d
Congratz Andrei and Sanda

Re: Making byLine faster: we should be able to delegate this

2015-03-28 Thread bioinfornatics via Digitalmars-d
Java has disruptor to provide the fatest way to ring file. website: http://lmax-exchange.github.io/disruptor/ technical information: http://lmax-exchange.github.io/disruptor/files/Disruptor-1.0.pdf

Re: Making byLine faster: we should be able to delegate this

2015-03-28 Thread bioinfornatics via Digitalmars-d
What about hugepagesize system on LINUX ?

Did D will try to get the vulkan opportunity?

2015-03-25 Thread bioinfornatics via Digitalmars-d
Dear, I would like to know if D dev have a plan with vulkan : https://www.khronos.org/vulkan/ ? D lang will be at same level than others language, nothing exists ! D could try to provide API and an environment around vulkan. To become a language need to be used in this field. Regards

Re: Git, the D package manager

2015-02-09 Thread bioinfornatics via Digitalmars-d
They are MakefileForD https://github.com/bioinfornatics/MakefileForD It is easy to use. You have only to set First lines: export PROJECT_NAME = export AUTHOR = export DESCRIPTION = export VERSION= export LICENSE= ROOT_SOURCE_DIR = EXE_NAME = and that will find automatically

Re: About variant

2015-01-27 Thread bioinfornatics via Digitalmars-d-learn
I can do this import std.variant; struct Alpha { Variant something; this(Variant v){ something = v; } static Alpha build(T)(T v){ return Alpha( cast(Variant)v ); } } void main(){ auto a =

Re: About variant

2015-01-27 Thread bioinfornatics via Digitalmars-d-learn
On Tuesday, 27 January 2015 at 21:00:16 UTC, Justin Whear wrote: On Tue, 27 Jan 2015 20:46:59 +, bioinfornatics wrote: void main(){ auto a = Alpha!(int)( 6); auto b = Alpha!(string)( hello); The Alpha struct is not a template, only the constructor is. Remove the

About variant

2015-01-27 Thread bioinfornatics via Digitalmars-d-learn
Dear that do a lot time wehere I not used std.variant. i would like to hide extra cast from user by using a generic ctor import std.variant; struct Alpha { Variant something; this(T)(T v){ something = cast(Variant)v; } } void main(){

Re: D, Dub, Debian, Fedora

2015-01-19 Thread Bioinfornatics via Digitalmars-d
Hi, I am a fedora packager. I packaged libraries for fedora using a makefile, cmake and other but not dub. I will not use dub until they support makefile. I have no time to add this feature and it seem we have all same problem :-). Using scons is fine to me, I could package it. If you want to

Re: D and Nim

2015-01-04 Thread Bioinfornatics via Digitalmars-d
Thanks I will try it. It seems really cool. Maybe my new favorite language.

Re: Any LaTeX expers n da house?

2014-12-30 Thread bioinfornatics via Digitalmars-d
On Tuesday, 30 December 2014 at 18:04:06 UTC, Andrei Alexandrescu wrote: With https://github.com/D-Programming-Language/dlang.org/pull/736, beautiful PDF generation via LaTeX is now possible. There are, of course, many details to tend to. For starters, currently the doc is overly sparse,

Re: What's missing to make D2 feature complete?

2014-12-23 Thread bioinfornatics via Digitalmars-d
I think in, out, inout and scope should go. Make all parameters that are by-value immutable by default. I agree with this. In more that could to be interesting if compiler could translate in to something like const scope ref when it is an array or heavy object. to save memory allocation and

Re: What's missing to make D2 feature complete?

2014-12-22 Thread bioinfornatics via Digitalmars-d
On Saturday, 20 December 2014 at 20:14:21 UTC, Ola Fosheim Grøstad wrote: On Saturday, 20 December 2014 at 17:40:06 UTC, Martin Nowak wrote: Just wondering what the general sentiment is. I think the main problem is what is there already, which prevents more sensible performance features from

Re: Lost a new commercial user this week :(

2014-12-18 Thread bioinfornatics via Digitalmars-d
On Monday, 15 December 2014 at 01:30:00 UTC, Dicebot wrote: On Sunday, 14 December 2014 at 08:37:36 UTC, Manu via Digitalmars-d wrote: We were trying to use vibe.d, and we encountered bugs. We were unable to build Win64 code ... Here is exactly your problem - trying to do a web development

Re: Lost a new commercial user this week :(

2014-12-18 Thread bioinfornatics via Digitalmars-d
they are in same way mmfile module which is deprecated since many years, xml was in same case

What is the D plan's to become a used language?

2014-12-18 Thread bioinfornatics via Digitalmars-d
Dear, My topic is a kick in the anthill. I hope this will help D to think on his problems. D exist since 1999, if we look behind, what is done? We have : - a huge cemetery of D project - no D killer application - miss the goal what to do to improve D experience - each new D release your

Re: What is the D plan's to become a used language?

2014-12-18 Thread bioinfornatics via Digitalmars-d
about Dub, I have another view. This build system was created for end user to get a missing library when they want their killer application. As is done with PyPI or gem. Dub to me is not a builder for developer and even less for an OS. dub install software in home user a la windows style. I

Re: Lost a new commercial user this week :(

2014-12-18 Thread bioinfornatics via Digitalmars-d
please stop with this dub It do not respect OS specification Is a monolith application,inside they are at least 3 kinds of software: - a builder - a package manager - a package indexer In any case the : - no respect of OS specification and standard path - any discussion with OS

Re: Lost a new commercial user this week :(

2014-12-18 Thread bioinfornatics via Digitalmars-d
How do you intend to provide build tools and package distribution that work across all OS? split dub in smaller project as this packager could integrate tools inside Os themself. python with his setup.py is to me a nice win with it packager can configure it to fit right on Os end user

Re: Lost a new commercial user this week :(

2014-12-18 Thread bioinfornatics via Digitalmars-d
On Thursday, 18 December 2014 at 14:32:03 UTC, Dicebot wrote: On Thursday, 18 December 2014 at 13:48:27 UTC, bioinfornatics wrote: please stop with this dub It do not respect OS specification Is a monolith application,inside they are at least 3 kinds of software: - a builder - a package

Re: Lost a new commercial user this week :(

2014-12-18 Thread bioinfornatics via Digitalmars-d
So now you are making Python a dependency. Besides porting D to a new platform, Python must also be ported. Yes, there are computer systems without Python support. What ? I took an example what is done in a close field . I haven't said to put python as dependencies ...

Re: Lost a new commercial user this week :(

2014-12-18 Thread bioinfornatics via Digitalmars-d
On Thursday, 18 December 2014 at 14:46:33 UTC, Dicebot wrote: How one can consider pip a good thing for packaging and blame dub at the same time is beyond my comprehensions. I have nothing but hatred against both pip and gems. You missed the point: - to me dub is a pip like but in python

Re: Lost a new commercial user this week :(

2014-12-17 Thread bioinfornatics via Digitalmars-d
- I want a gui toolkit that is accelerated e.g. OpenGL. - That can be layered drawn on top of other OpenGL content. - Completely configurable at runtime e.g. change of shaders. - Centralized themeing. - That works on all major platforms without heartache. But here's the thing about guis in

Re: UDA failling to build when using delegate

2014-11-05 Thread bioinfornatics via Digitalmars-d-learn
On Tuesday, 4 November 2014 at 22:06:03 UTC, Ali Çehreli wrote: On 11/04/2014 01:58 PM, bioinfornatics wrote: test.d(40): Error: type Section!((letter) = letter == '', (letter) = letter == '\x0a') has no value You have this line: @Section!(/* ... */) Although that is a type name, there

Re: UDA failling to build when using delegate

2014-11-05 Thread bioinfornatics via Digitalmars-d-learn
On Wednesday, 5 November 2014 at 21:57:42 UTC, bioinfornatics wrote: On Tuesday, 4 November 2014 at 22:06:03 UTC, Ali Çehreli wrote: On 11/04/2014 01:58 PM, bioinfornatics wrote: test.d(40): Error: type Section!((letter) = letter == '', (letter) = letter == '\x0a') has no value You have

undefined reference to `_D5xxxx6yyyyy12__ModuleInfoZ'

2014-11-05 Thread bioinfornatics via Digitalmars-d-learn
Dear, maybe I'm too tired to see my errors or they are a bug. See below I have this: . |-- fasta.d `-- src `-- nicea |-- metadata.d |-- parser.d `-- range.d when I try to build it: $ dmd -I./src/ ./fasta.d 21 fasta.o:(.rodata+0x1f8): undefined reference to

Re: undefined reference to `_D5xxxx6yyyyy12__ModuleInfoZ'

2014-11-05 Thread bioinfornatics via Digitalmars-d-learn
On Wednesday, 5 November 2014 at 23:53:57 UTC, Ali Çehreli wrote: On 11/05/2014 03:48 PM, bioinfornatics wrote: Dear, maybe I'm too tired to see my errors or they are a bug. See below I have this: . |-- fasta.d `-- src `-- nicea |-- metadata.d |-- parser.d

Re: UDA failling to build when using delegate

2014-11-04 Thread bioinfornatics via Digitalmars-d-learn
On Tuesday, 4 November 2014 at 00:32:52 UTC, bioinfornatics wrote: On Monday, 3 November 2014 at 23:53:53 UTC, bioinfornatics wrote: Dear, why this code fail to build http://dpaste.dzfl.pl/8ef3898b05d2 ? I try to have a structure which is used to fill information from a file. And I use

Re: Why ByChunk is not regnize by st.range.takeOne and why Section has no value

2014-11-03 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 3 November 2014 at 06:43:50 UTC, Ali Çehreli wrote: On 11/02/2014 04:58 PM, bioinfornatics wrote: Dear, Some problem to build this code: http://fpaste.org/147327/75948141/ $ ldc2 fasta_test.d /usr/include/d/std/range.d(3605): Error: template std.array.save cannot deduce

Re: Why ByChunk is not regnize by st.range.takeOne and why Section has no value

2014-11-03 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 3 November 2014 at 21:03:51 UTC, bioinfornatics wrote: On Monday, 3 November 2014 at 06:43:50 UTC, Ali Çehreli wrote: On 11/02/2014 04:58 PM, bioinfornatics wrote: Dear, Some problem to build this code: http://fpaste.org/147327/75948141/ $ ldc2 fasta_test.d

UDA failling to build when using delegate

2014-11-03 Thread bioinfornatics via Digitalmars-d-learn
Dear, why this code fail to build http://dpaste.dzfl.pl/8ef3898b05d2 ? I try to have a structure which is used to fill information from a file. And I use UDA to tell : to get this field you need to read from x to y using a delegate. thanks for your advise

Re: UDA failling to build when using delegate

2014-11-03 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 3 November 2014 at 23:53:53 UTC, bioinfornatics wrote: Dear, why this code fail to build http://dpaste.dzfl.pl/8ef3898b05d2 ? I try to have a structure which is used to fill information from a file. And I use UDA to tell : to get this field you need to read from x to y using a

Why ByChunk is not regnize by st.range.takeOne and why Section has no value

2014-11-02 Thread bioinfornatics via Digitalmars-d-learn
Dear, Some problem to build this code: http://fpaste.org/147327/75948141/ $ ldc2 fasta_test.d /usr/include/d/std/range.d(3605): Error: template std.array.save cannot deduce function from argument types !()(ByChunk), candidates are: /usr/include/d/std/array.d(554):std.array.save(T)(T[]

Re: DUB 0.9.22 released

2014-10-06 Thread bioinfornatics via Digitalmars-d-announce
Thanks for your works, One question, what about makefile support ? Regards

Re: DUB 0.9.22 released

2014-10-06 Thread bioinfornatics via Digitalmars-d-announce
On Monday, 6 October 2014 at 18:15:08 UTC, Sönke Ludwig wrote: Am 06.10.2014 13:36, schrieb bioinfornatics: Thanks for your works, One question, what about makefile support ? Regards It's still in need for a volunteer. The implementation itself should be pretty straightforward (by

What is best way to communicate between computer in local network ?

2014-06-27 Thread bioinfornatics via Digitalmars-d-learn
Hi, I have a linux network and i would like to know if they are a D library to communicate between computer efficiently. I do not know if that is better to use websocket and if they exists into dlang: - http://planet.jboss.org/post/rest_vs_websocket_comparison_and_benchmarks Thanks for

Re: What is best way to communicate between computer in local network ?

2014-06-27 Thread bioinfornatics via Digitalmars-d-learn
On Friday, 27 June 2014 at 13:03:20 UTC, John Colvin wrote: On Friday, 27 June 2014 at 12:51:45 UTC, bioinfornatics wrote: Hi, I have a linux network and i would like to know if they are a D library to communicate between computer efficiently. I do not know if that is better to use

Re: What is best way to communicate between computer in local network ?

2014-06-27 Thread bioinfornatics via Digitalmars-d-learn
On Friday, 27 June 2014 at 13:02:55 UTC, Adam D. Ruppe wrote: On Friday, 27 June 2014 at 12:51:45 UTC, bioinfornatics wrote: I do not know if that is better to use websocket and if they exists into dlang: you could use websocket in D but if you are talking between two separate D programs you

Re: Swift is based LLVM,what will the D's LDC do?

2014-06-05 Thread bioinfornatics via Digitalmars-d
On Thursday, 5 June 2014 at 06:40:17 UTC, Walter Bright wrote: On 6/4/2014 9:25 AM, Iain Buclaw via Digitalmars-d wrote: This likewise gdc too. All you need to do is look at the downloads page on dlang.org ! It still says nothing about doing: sudo apt-get install gdc on Ubuntu! Why

Re: why it said no identifier for declarator …

2014-06-04 Thread bioinfornatics via Digitalmars-d-learn
On Wednesday, 4 June 2014 at 00:07:35 UTC, Jesse Phillips wrote: On Tuesday, 3 June 2014 at 22:10:06 UTC, bioinfornatics wrote: I do not see why it fail in debug output we see that tuple have a field with given name. Your generated output (short and formatted) alias TL = Tuple!(int,x,

Re: why it said no identifier for declarator …

2014-06-04 Thread bioinfornatics via Digitalmars-d-learn
On Wednesday, 4 June 2014 at 00:07:35 UTC, Jesse Phillips wrote: On Tuesday, 3 June 2014 at 22:10:06 UTC, bioinfornatics wrote: I do not see why it fail in debug output we see that tuple have a field with given name. Your generated output (short and formatted) alias TL = Tuple!(int,x,

Re: How to assign a delegate to a var ?

2014-06-03 Thread bioinfornatics via Digitalmars-d-learn
On Monday, 2 June 2014 at 23:27:03 UTC, Meta wrote: On Monday, 2 June 2014 at 22:18:39 UTC, bioinfornatics wrote: Hi, I would like store the delegate to another var but when i try i get: testTraitsWithDelegate.d(13): Error: expression template __lambda2 is void and has no value I do not

Re: How to assign a delegate to a var ?

2014-06-03 Thread bioinfornatics via Digitalmars-d-learn
On Tuesday, 3 June 2014 at 12:27:45 UTC, bioinfornatics wrote: On Monday, 2 June 2014 at 23:27:03 UTC, Meta wrote: On Monday, 2 June 2014 at 22:18:39 UTC, bioinfornatics wrote: Hi, I would like store the delegate to another var but when i try i get: testTraitsWithDelegate.d(13): Error:

Re: How to assign a delegate to a var ?

2014-06-03 Thread bioinfornatics via Digitalmars-d-learn
On Tuesday, 3 June 2014 at 15:00:05 UTC, Ali Çehreli wrote: On 06/03/2014 05:57 AM, bioinfornatics wrote: On Tuesday, 3 June 2014 at 12:27:45 UTC, bioinfornatics wrote: I would like store the delegate to another var but when i try i get: testTraitsWithDelegate.d(13): Error: expression

Re: How to assign a delegate to a var ?

2014-06-03 Thread bioinfornatics via Digitalmars-d-learn
delegate has a context pointer that it uses when executing at run-time. However, there can't be a run-time context of a delegate that is created at compile-time. I think that is why the segfault. Is there a reason why it needs to be a delegate? Replacing every 'delegate' with 'function'

How to assign a delegate to a var ?

2014-06-02 Thread bioinfornatics via Digitalmars-d-learn
Hi, I would like store the delegate to another var but when i try i get: testTraitsWithDelegate.d(13): Error: expression template __lambda2 is void and has no value I do not want to run it only to save the «function» somewhere. --- CODE import std.stdio; import

How to convert int type to string int ?

2014-06-01 Thread bioinfornatics via Digitalmars-d-learn
Hi, All is in the title. I need this to do a tupleof enhanced, that mean: - .tupleof need an instance me i want to do this on type diretcly - .tupleof do not bind to member name i need this for this i strat to this code: import std.stdio; import std.typecons; import std.conv; struct

Re: How to convert int type to string int ?

2014-06-01 Thread bioinfornatics via Digitalmars-d-learn
On Sunday, 1 June 2014 at 13:34:20 UTC, bioinfornatics wrote: Hi, All is in the title. I need this to do a tupleof enhanced, that mean: - .tupleof need an instance me i want to do this on type diretcly - .tupleof do not bind to member name i need this for this i strat to this code:

Re: How to convert int type to string int ?

2014-06-01 Thread bioinfornatics via Digitalmars-d-learn
On Sunday, 1 June 2014 at 13:52:27 UTC, Tobias Pankrath wrote: Maybe http://dlang.org/property.html#stringof helps. yes that help a lot thanks

Re: How to convert int type to string int ?

2014-06-01 Thread bioinfornatics via Digitalmars-d-learn
I bam close to be done import std.stdio; import std.typecons; import std.conv; struct Coord { int x; int y; int z; } template toTuple(T){ static string maker(){ string statement = alias Tuple!(; foreach(const memberName; __traits(allMembers, T)){

Re: How to convert int type to string int ?

2014-06-01 Thread bioinfornatics via Digitalmars-d-learn
On Sunday, 1 June 2014 at 13:58:03 UTC, bioinfornatics wrote: On Sunday, 1 June 2014 at 13:52:27 UTC, Tobias Pankrath wrote: Maybe http://dlang.org/property.html#stringof helps. yes that help a lot thanks End of spam ( joke ^^) I found it :-) import std.stdio; import std.typecons; import

DMD fail when using both reflection and UDA

2014-06-01 Thread bioinfornatics via Digitalmars-d-learn
DMD (dmdfe 2.066) fail when i use UDA which store a delegate code below works if i remove @section UDA otheswise it give this error: dmd: statement.c:714: ErrorStatement::ErrorStatement(): Assertion `global.gaggedErrors || global.errors' failed. is a bug ? --- CODE also on dpaste

Re: DMD fail when using both reflection and UDA

2014-06-01 Thread bioinfornatics via Digitalmars-d-learn
On Sunday, 1 June 2014 at 16:02:47 UTC, bioinfornatics wrote: DMD (dmdfe 2.066) fail when i use UDA which store a delegate code below works if i remove @section UDA otheswise it give this error: dmd: statement.c:714: ErrorStatement::ErrorStatement(): Assertion `global.gaggedErrors ||

Re: DMD fail when using both reflection and UDA

2014-06-01 Thread bioinfornatics via Digitalmars-d-learn
stupid me bug was at the end a[0] = 1; become a[0] = 1; but error error was so stnange to me i though that was a bug

How to detect a lambda expression get it is signature

2014-06-01 Thread bioinfornatics via Digitalmars-d-learn
Hi i am looking how to perform this action with traits. Below some code to show what it fail Regards CODE import std.traits : isDelegate, isSomeFunction, MemberFunctionsTuple, ParameterIdentifierTuple; struct section( alias start, alias end ) { alias checkStart = start;

  1   2   >