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
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
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,
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
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
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
the error message was understandable to me,
... the error message was not understandable to me ...
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
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
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
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
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
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
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
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
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
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
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
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
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){
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:
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
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 =
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
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(){
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
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
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
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
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
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
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
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
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
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[]
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
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
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
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,
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,
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
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:
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
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'
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
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
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:
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
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)){
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 (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
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 ||
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
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;
On Sunday, 1 June 2014 at 16:18:45 UTC, Philippe Sigaud via
Digitalmars-d-learn wrote:
In any case, it's an internal compiler error, so it's a bug.
Users
should never see ICEs.
Could you please report it, with the entire error message?
Ok thanks is don at
On Monday, 26 May 2014 at 10:59:00 UTC, Dejan Lekic wrote:
bioinfornatics wrote:
Hi, after building and installing dmd i fail to use generated
executable because they are an undefined symbol.
$ /opt/dmd/bin/dmd -L-lcurl testDelegate.d
$ ./testDelegate
./testDelegate: symbol lookup error:
Hi,
I would like to create a virtual struct, i mean as Input Range.
You can create a new struct type and to be an input range. i know
that use duck typing :-)
In my case i would like to use duck typing if a stuct of any type
have an a given attribute. By exbample if at least on field as
@MyUDA
On Monday, 26 May 2014 at 15:41:03 UTC, bioinfornatics wrote:
On Monday, 26 May 2014 at 15:33:45 UTC, JJDuck wrote:
On Monday, 26 May 2014 at 14:05:48 UTC, Rene Zwanenburg wrote:
Vibe.d has support for ssl streams. You should be able to
send and receive raw structs over such a stream, or if
On Monday, 26 May 2014 at 15:33:45 UTC, JJDuck wrote:
On Monday, 26 May 2014 at 14:05:48 UTC, Rene Zwanenburg wrote:
Vibe.d has support for ssl streams. You should be able to send
and receive raw structs over such a stream, or if the server
and client have a different arch you can use vibe's
On Monday, 26 May 2014 at 15:44:13 UTC, JJDuck wrote:
On Monday, 26 May 2014 at 14:05:48 UTC, Rene Zwanenburg wrote:
On Monday, 26 May 2014 at 10:48:09 UTC, JJDuck wrote:
Vibe.d has support for ssl streams. You should be able to send
and receive raw structs over such a stream, or if the
On Monday, 26 May 2014 at 19:50:29 UTC, Ali Çehreli wrote:
On 05/23/2014 09:09 AM, bioinfornatics wrote:
struct A {
@section( ( word ) = word[0] == '@', ( word ) =
word[0] == '\n')
int a;
}
I was able to make that work if I used function instead of
delegate:
import
Hi, after building and installing dmd i fail to use generated
executable because they are an undefined symbol.
$ /opt/dmd/bin/dmd -L-lcurl testDelegate.d
$ ./testDelegate
./testDelegate: symbol lookup error:
/opt/dmd/lib/libphobos2.so.0.66: undefined symbol:
curl_version_info
$ ldd
On Saturday, 24 May 2014 at 10:14:23 UTC, Derix wrote:
OK, I have the newest Eclipse+DDT on Linux.
Debugging capabilies look great :
https://github.com/bruno-medeiros/DDT/blob/latest/documentation/Features.md#debugging-functionality
However so far I haven't been able to step throug source
On Friday, 23 May 2014 at 08:20:05 UTC, Philippe Sigaud via
Digitalmars-d-learn wrote:
On Fri, May 23, 2014 at 8:44 AM, monarch_dodra via
Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
On Friday, 23 May 2014 at 01:17:18 UTC, bioinfornatics wrote:
I would like to get struct's
On Friday, 23 May 2014 at 01:17:18 UTC, bioinfornatics wrote:
Dear,
I would like to get struct's members and zip them with an action
as
struct A
{
int a;
int b;
}
std.range.zip( __traits( allmembers, A ), [(x) = x == 0, (y) =
y 3] );
like this i could apply an action to each field.
I
I bask originally this qustion in this thread :
http://forum.dlang.org/post/rsnswykpjfzenpliv...@forum.dlang.org
but another thread is better as that is not exactly same topic.
I would like to use custom annotate/attribute on members as:
struct A
{
@Parser(
start = (
Dear,
I would like to get struct's members and zip them with an action
as
struct A
{
int a;
int b;
}
std.range.zip( __traits( allmembers, A ), [(x) = x == 0, (y) =
y 3] );
like this i could apply an action to each field.
I tried this:
http://dpaste.dzfl.pl/747799ffa64e
but:
tuple
On Thursday, 8 May 2014 at 20:57:08 UTC, Taylor Hillegeist wrote:
So i was thinking i wonder if anyone has a d library for excel
and behold there it was. however, it seems like d has grown
since this was written.
I'm getting bunches of errors telling me that i can't override
a function
68 matches
Mail list logo