On Sunday, 4 May 2014 at 16:18:53 UTC, Gary Willoughby wrote:
Tkd v1.0.0-beta
https://github.com/nomad-software/tkd
http://code.dlang.org/packages/tkd
Overview
Tkd is a fully cross-platform GUI toolkit based on Tcl/Tk[1].
Tkd allows you to build GUI applications easily and with the
On Wednesday, 7 May 2014 at 08:26:30 UTC, John Colvin wrote:
What dmd frontend version are you targeting/developing with?
2.065 I'll add a note to the readme file.
Hello all,
Sociomantic has some new D developer positions open. This time,
we're particularly interested in those of you whose background
covers things like machine learning, data science, and other fun
and related topics. Perfect for people with research backgrounds
who want to get
On 04/05/2014 10:38, Johannes Pfau wrote:
We've just uploaded new binary releases to
http://gdcproject.org/downloads/
## GDC changes ##
As we merged the first parts of Daniel Greens MinGW changes
back into GDC we now also provide initial (automated) MinGW builds.
These builds are mostly
On 5/7/14, 5:44 AM, Joseph Rushton Wakeling wrote:
Hello all,
Sociomantic has some new D developer positions open.
(you’ll be programming in D1) ಠ_ಠ
Andrei
Am Wed, 07 May 2014 14:38:32 +0100
schrieb Bruno Medeiros bruno.do.medeiros+...@gmail.com:
On 04/05/2014 10:38, Johannes Pfau wrote:
We've just uploaded new binary releases to
http://gdcproject.org/downloads/
## GDC changes ##
As we merged the first parts of Daniel Greens MinGW
On Wednesday, 7 May 2014 at 15:09:05 UTC, Andrei Alexandrescu
wrote:
(you’ll be programming in D1) ಠ_ಠ
I refer you to my colleague's excellent talk, soon to be
presented at DConf :-)
http://dconf.org/2014/talks/clugston.html
On Sunday, 4 May 2014 at 16:18:53 UTC, Gary Willoughby wrote:
Tkd v1.0.0-beta
https://github.com/nomad-software/tkd
http://code.dlang.org/packages/tkd
Overview
Tkd is a fully cross-platform GUI toolkit based on Tcl/Tk[1].
Tkd allows you to build GUI applications easily and with the
Hello,
Can you let the memory usage below to 3M? like the DFL?
Thank you.
Frank
On 7 May 2014 05:32, Walter Bright via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On 5/6/2014 9:11 PM, Mike wrote:
But, thinking about it a little more, a car is starting to look pretty
good.
I had a car last year, and we stuffed it to the gills with people going
between FB and
On Sun, 04 May 2014 23:22:27 -0700, Jacob Carlborg d...@me.com wrote:
On 04/05/14 20:26, Jonas Drewsen wrote:
Just had a quick look at the source code.
If this is to be something like the official gfx library wouldn't it
make sense to follow the phobos coding style?
For example struct Size
On 06/05/14 20:39, Dicebot wrote:
On Tuesday, 6 May 2014 at 18:28:27 UTC, Jacob Carlborg wrote:
d.
I don't see why would be bad to use unittest for integration tests,
except for the misguided name. It's perfectly to place unittest is
completely different modules and packages. They don't need to
On Sun, 04 May 2014 23:22:27 -0700, Jacob Carlborg d...@me.com wrote:
On 04/05/14 20:26, Jonas Drewsen wrote:
Just had a quick look at the source code.
If this is to be something like the official gfx library wouldn't it
make sense to follow the phobos coding style?
For example struct Size
On 07/05/14 01:05, Etienne wrote:
I've just started using tkd and the memory usage is 3.4MB on windows for
a Hello World.
It requires a lot of tcl/tk source files (900 files) and 2 dlls, but I
think a workaround can be found for them to be packed in an in-place
unpacker app by compiling on top
iridium wrote in message news:ltcxhbcqltnltbidd...@forum.dlang.org...
Yes. optabtgen now runs correctly. Now another error. I understand the
error during assembly: http://itmages.ru/image/view/1652519/5fa513e0
Linker error actually.
The first one is saying it can't find Obj::init which is
On Sun, 04 May 2014 23:22:27 -0700, Jacob Carlborg d...@me.com wrote:
On 04/05/14 20:26, Jonas Drewsen wrote:
Just had a quick look at the source code.
If this is to be something like the official gfx library wouldn't it
make sense to follow the phobos coding style?
For example struct Size
On Wednesday, 7 May 2014 at 03:58:38 UTC, Manu via Digitalmars-d
wrote:
On 7 May 2014 08:07, Xavier Bigand via Digitalmars-d
digitalmars-d@puremagic.com wrote:
Le 06/05/2014 13:39, Paulo Pinto a écrit :
Android works well, I love my nexus, it proves to me that it's
possible to
create really
On Tuesday, 6 May 2014 at 02:20:46 UTC, Lionello Lunesu wrote:
Hi all,
After last year's incident with my tires getting slashed, I'm
really hoping I can do without a car during this year's DConf.
How feasible is this?
I'll be staying at Aloft. Would be great if there's someone I
can share
On Wednesday, 7 May 2014 at 06:50:34 UTC, Paulo Pinto wrote:
A *nix package manager is brain dead idea for software
development as it ties the language libraries to the specific OS
one is using.
The difference is that you are more vulnerable by getting
software from language specific
On Tuesday, 6 May 2014 at 21:31:32 UTC, bearophile wrote:
Paulo Pinto:
That is an implementation detail I would say,
It's not an implementation detail, it has consequences on the
kind of code you are allowed to write, because it's not really
a dynamic language. After the JIT compilation
On Tuesday, 6 May 2014 at 21:00:18 UTC, bearophile wrote:
The language tries its best to be flexible as a dynamic
language. But variables never carry a run-time type tag, unlike
in Lisp.
Hmm... Then how can I do this:
x = 5
typeof(x) # evaluates to Int64
x = 5.0
typeof(x) # evaluates
On Tuesday, 6 May 2014 at 22:48:02 UTC, Meta wrote:
On Tuesday, 6 May 2014 at 19:18:08 UTC, Wyatt wrote:
On Tuesday, 6 May 2014 at 18:02:46 UTC, John Colvin wrote:
It never occurred to you that people's libraries would be
published as part of a centralised repository with a tool
that
On 06/05/14 19:57, Manu via Digitalmars-d wrote:
As I said before, dub has never even occurred to me. No windows user
is likely to naturally think to use a package manager :/
Doesn't Windows have NuGet?
--
/Jacob Carlborg
On Tuesday, 6 May 2014 at 22:07:15 UTC, Xavier Bigand wrote:
Le 06/05/2014 13:39, Paulo Pinto a écrit :
On Tuesday, 6 May 2014 at 10:58:14 UTC, Manu via Digitalmars-d
wrote:
On 6 May 2014 16:33, Jacob Carlborg via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On 06/05/14 08:07,
On Wednesday, 7 May 2014 at 02:48:45 UTC, Brian Schott wrote:
Here's an interesting anecdote:
I have a version of DCD that I've been working on for a while
that uses allocators and an allocator-backed container library.
(You can find this on Github easily enough, but I'm not
announcing it
On 05/07/2014 06:32 AM, Walter Bright via Digitalmars-d wrote:
I had a car last year, and we stuffed it to the gills with people
going between FB and Aloft. Will do so again this year.
I will have a car as well, but I'm staying on the other side of the bay.
I can take three people from FB to
On Tue, 06 May 2014 10:20:45 +0800
Lionello Lunesu via Digitalmars-d digitalmars-d@puremagic.com wrote:
Hi all,
After last year's incident with my tires getting slashed, I'm really
hoping I can do without a car during this year's DConf. How feasible
is this?
I'll be staying at Aloft. Would
On Tuesday, 6 May 2014 at 23:19:47 UTC, Mason McGill wrote:
On Tuesday, 6 May 2014 at 11:28:21 UTC, Chris wrote:
Maybe it's time to think about a D interface to Julia. If
Julia catches on within the scientific community, it would be
good to have a foot in the door. Science quickly creates
On Wednesday, 7 May 2014 at 07:27:42 UTC, Mason McGill wrote:
On Tuesday, 6 May 2014 at 21:00:18 UTC, bearophile wrote:
The language tries its best to be flexible as a dynamic
language. But variables never carry a run-time type tag,
unlike in Lisp.
Hmm... Then how can I do this:
x = 5
On Tuesday, 6 May 2014 at 21:31:32 UTC, bearophile wrote:
Paulo Pinto:
That is an implementation detail I would say,
It's not an implementation detail, it has consequences on the
kind of code you are allowed to write, because it's not really
a dynamic language. After the JIT compilation
On Wednesday, 7 May 2014 at 08:22:51 UTC, John Colvin wrote:
The allocator version uses 1/3 the memory that the older GC
version used.
What is your feeling on the increased code
complexity/fragility, if any?
It was difficult because it's very easy to accidentally have
references to GC
On Wednesday, 7 May 2014 at 09:29:15 UTC, Brian Schott wrote:
On Wednesday, 7 May 2014 at 08:22:51 UTC, John Colvin wrote:
The allocator version uses 1/3 the memory that the older GC
version used.
What is your feeling on the increased code
complexity/fragility, if any?
It was difficult
On Wednesday, 7 May 2014 at 09:16:01 UTC, Chris wrote:
On Tuesday, 6 May 2014 at 23:19:47 UTC, Mason McGill wrote:
On Tuesday, 6 May 2014 at 11:28:21 UTC, Chris wrote:
Maybe it's time to think about a D interface to Julia. If
Julia catches on within the scientific community, it would be
good
Till we have such issues
http://forum.dlang.org/thread/mailman.357.1384163617.9546.digitalmar...@puremagic.com
I think we should have native replacement.
On Wednesday, 7 May 2014 at 09:47:44 UTC, John Colvin wrote:
On Wednesday, 7 May 2014 at 09:29:15 UTC, Brian Schott wrote:
On Wednesday, 7 May 2014 at 08:22:51 UTC, John Colvin wrote:
The allocator version uses 1/3 the memory that the older GC
version used.
What is your feeling on the
On Wednesday, 7 May 2014 at 06:21:48 UTC, Daniel Murphy wrote:
iridium wrote in message
news:ltcxhbcqltnltbidd...@forum.dlang.org...
Yes. optabtgen now runs correctly. Now another error. I
understand the error during assembly:
http://itmages.ru/image/view/1652519/5fa513e0
Linker error
Here is a question, is it possible for D, or any future language,
to eventually take something like this...
void foo(InputRange)(InputRange range)
if(isInputRange!InputRange);
...and to instead be able to write it like this?
void foo(InputRange range);
Where the latter expands into
On Wednesday, 7 May 2014 at 11:57:51 UTC, w0rp wrote:
Here is a question, is it possible for D, or any future
language, to eventually take something like this...
void foo(InputRange)(InputRange range)
if(isInputRange!InputRange);
...and to instead be able to write it like this?
void
On Wednesday, 7 May 2014 at 09:16:01 UTC, Chris wrote:
On Tuesday, 6 May 2014 at 23:19:47 UTC, Mason McGill wrote:
On Tuesday, 6 May 2014 at 11:28:21 UTC, Chris wrote:
Maybe it's time to think about a D interface to Julia. If
Julia catches on within the scientific community, it would be
good
On 07/05/14 05:36, Manu via Digitalmars-d wrote:
Haha, nice! I didn't realise that all my examples for hypothetical
consideration came back to just you! :)
So then, your take on an experimental space in the compiler for
features that are still baking seems especially relevant.
Am I talking
On Wednesday, 7 May 2014 at 07:26:34 UTC, Ola Fosheim Grøstad
wrote:
On Wednesday, 7 May 2014 at 06:50:34 UTC, Paulo Pinto wrote:
A *nix package manager is brain dead idea for software
development as it ties the language libraries to the specific
OS
one is using.
The difference is that you
On Wednesday, 7 May 2014 at 11:57:51 UTC, w0rp wrote:
Here is a question, is it possible for D, or any future
language, to eventually take something like this...
void foo(InputRange)(InputRange range)
if(isInputRange!InputRange);
...and to instead be able to write it like this?
void
On Wednesday, 7 May 2014 at 12:47:05 UTC, Paulo Pinto wrote:
This is for software development, not end user software.
Which makes avoiding trojans or rogue libraries even more
critical. I avoid sources with low volume, no auditing and
questionable authentication for commercial development.
On Wednesday, 7 May 2014 at 11:57:51 UTC, w0rp wrote:
Here is a question, is it possible for D, or any future
language, to eventually take something like this...
void foo(InputRange)(InputRange range)
if(isInputRange!InputRange);
...and to instead be able to write it like this?
void
Sergei Nosov:
void foo(InputRange range1, InputRange range2); // how to
specify that InputRange should be exactly the same type? or
possibly distinct types?
I think the Concepts lite proposal faces this problem too. Take a
look.
But so far Andrei was against the idea of having lite
On Wednesday, 7 May 2014 at 12:47:29 UTC, Sergei Nosov wrote:
void foo(InputRange range1, InputRange range2); // how to
specify that InputRange should be exactly the same type? or
possibly distinct types?
One thing to consider would be that InputRange wouldn't be a type
itself, but range1
On Wednesday, 7 May 2014 at 06:34:44 UTC, Jacob Carlborg wrote:
So you're saying to use the unittest keyword but with a UDA?
I think this is most reasonable compromise that does not harm
existing system.
Something I already do, but for unit tests. Well my idea for a
testing framework would
On Tuesday, 6 May 2014 at 20:41:01 UTC, Andrei Alexandrescu wrote:
Fail with diagnostic. -- Andrei
..and do that for every single test case which is affected. Which
requires either clear test execution order (including
cross-module test dependencies) or shared boilerplate (which
becomes
Ever since the mailing list software was changed to say sender via
Digitalmars-d, a number of the messages have been from via Digitalmars-d -
they're missing the actual sender. And for many of them, the person who sent
the message didn't bother to put a signature on it, making it so that you
can't
On Wednesday, 7 May 2014 at 14:19:26 UTC, Jonathan M Davis via
Digitalmars-d wrote:
So, I'd appreciate it if we could get this problem sorted out
sometime soon.
Thanks.
Yeah, same problem here as well. I practically have to skip
reading from unknown senders because I can't tell who they are.
On Wednesday, 7 May 2014 at 14:19:26 UTC, Jonathan M Davis via
Digitalmars-d wrote:
Ever since the mailing list software was changed to say sender
via
Digitalmars-d, a number of the messages have been from via
Digitalmars-d -
they're missing the actual sender.
The web interface does mot
On 5/7/14, 6:18 AM, Marc Schütz schue...@gmx.net wrote:
On Wednesday, 7 May 2014 at 07:27:42 UTC, Mason McGill wrote:
On Tuesday, 6 May 2014 at 21:00:18 UTC, bearophile wrote:
The language tries its best to be flexible as a dynamic language. But
variables never carry a run-time type tag,
On 06/05/2014 18:58, Dicebot wrote:
On Tuesday, 6 May 2014 at 15:54:30 UTC, Bruno Medeiros wrote:
But before we continue the discussion, we are missing am more basic
assumption here: Do we want D to have a Unit-Testing facility, or a
Testing facility?? In other words, do we want to be able to
The web interface does mot check the sender field, so
did... Now it checks.
O.
On Wed, May 07, 2014 at 07:19:06AM -0700, Jonathan M Davis via Digitalmars-d
wrote:
Ever since the mailing list software was changed to say sender via
Digitalmars-d, a number of the messages have been from via
Digitalmars-d - they're missing the actual sender. And for many of
them, the person
On 5/7/14, w0rp via Digitalmars-d digitalmars-d@puremagic.com wrote:
void foo(InputRange range);
How to make it accept multiple types? Simple, we already have template
constraints, so this would be how to do it, where T is the element
type of the input range:
void foo(T)(InputRange!T range);
On Wednesday, 7 May 2014 at 12:05:10 UTC, bachmeier wrote:
On Wednesday, 7 May 2014 at 09:16:01 UTC, Chris wrote:
On Tuesday, 6 May 2014 at 23:19:47 UTC, Mason McGill wrote:
On Tuesday, 6 May 2014 at 11:28:21 UTC, Chris wrote:
Maybe it's time to think about a D interface to Julia. If
Julia
On 07/05/14 16:05, Dicebot wrote:
Have never liked that fancy description syntax of smart testing
frameworks.
I hate plain unit test blocks with just a bunch of asserts. It's
impossible to know that's being tested.
--
/Jacob Carlborg
On Wed, May 07, 2014 at 04:55:25PM +0200, Jacob Carlborg via Digitalmars-d
wrote:
On 07/05/14 16:05, Dicebot wrote:
Have never liked that fancy description syntax of smart testing
frameworks.
I hate plain unit test blocks with just a bunch of asserts. It's
impossible to know that's being
I compare DFL with tkD and dlangui,find:
DFL can gets the smallest exe file and Minimal memory footprint.
Although it only works on windows,but it full wrote by D. and its
syntax is very similar to c#,that can help a lots of c# lovers
turn to D,this will help D to develop.
What's the status
On Wednesday, 7 May 2014 at 11:40:59 UTC, iridium wrote:
On Wednesday, 7 May 2014 at 06:21:48 UTC, Daniel Murphy wrote:
iridium wrote in message
news:ltcxhbcqltnltbidd...@forum.dlang.org...
Yes. optabtgen now runs correctly. Now another error. I
understand the error during assembly:
I still don't understand what you mean by distributed.
Spawning 50.000 tasks:
import vibe.core.core;
import std.stdio;
void main()
{
foreach (i; 0 .. 50_000)
runTask({
writefln(Hello, World!);
So the videos of the Gophercon 2014 are being made available.
Rob Pike did the keynote. At the expected question about generics,
his answer was There are no plans for generics. I said we're going to
leave the language; we're done..
Discussion ongoing on HN,
void foo(T)(InputRange!T range);
Clever. Shouldn't we all, including Phobos, use this shorter
syntax instead?
Further, we could always do
alias R = InputRange!T;
or
alias R = typeof(range);
inside the body if needed.
void foo(T)(InputRange!T range);
Update:
Ahh, it seems this syntax is currently accepted by DMD. Should it
be?
Original function:
import std.range: isInputRange;
bool allEqual(R)(R range) @safe pure nothrow if (isInputRange!R)
{
import std.algorithm: findAdjacent;
import
Looks like there's consensus, time to choose the creative. Here are a
few examples:
- http://jquery.com/ (bottom)
- http://jqueryui.com/ (bottom)
- http://www.yiiframework.com/
- http://primefaces.org/
- https://www.freeswitch.org/
Please chime in!
Andrei
On Wednesday, 7 May 2014 at 16:04:39 UTC, Nordlöw wrote:
void foo(T)(InputRange!T range);
Update:
Ahh, it seems this syntax is currently accepted by DMD. Should
it be?
Original function:
import std.range: isInputRange;
bool allEqual(R)(R range) @safe pure nothrow if (isInputRange!R)
{
Ahh, it seems this syntax is currently accepted by DMD. Should
it be?
Correction:
Ahh, it seems this syntax is currently *not* accepted by DMD.
Should
it be?
On Wednesday, 7 May 2014 at 15:07:20 UTC, H. S. Teoh via
Digitalmars-d wrote:
On Wed, May 07, 2014 at 04:55:25PM +0200, Jacob Carlborg via
Digitalmars-d wrote:
On 07/05/14 16:05, Dicebot wrote:
Have never liked that fancy description syntax of smart
testing
frameworks.
I hate plain unit
On Mon, 05 May 2014 17:10:35 -0700, Andrei Alexandrescu wrote:
So I'm looking at creation functions and in particular creation
functions for arrays.
1. Follow the new int[n] convention:
auto a = allok.make!(int[])(42);
assert(a.length == 42);
assert(a.equal(repeat(0, 42));
Why not use
On Wednesday, 7 May 2014 at 15:57:10 UTC, Andrei Alexandrescu
wrote:
Looks like there's consensus, time to choose the creative. Here
are a few examples:
- http://jquery.com/ (bottom)
- http://jqueryui.com/ (bottom)
- http://www.yiiframework.com/
- http://primefaces.org/
-
Hello everyone,
I'm working on porting a java library in D, and I stuck on a
class because it works with the reflection.
From what I've read on prowiki
(http://www.prowiki.org/wiki4d/wiki.cgi?LanguagesVersusD), D can
not do reflection, it is limited to the Run-Time Type Information
(RTTI )
On Wednesday, 7 May 2014 at 16:51:10 UTC, amehat wrote:
Hello everyone,
I'm working on porting a java library in D, and I stuck on a
class because it works with the reflection.
From what I've read on prowiki
(http://www.prowiki.org/wiki4d/wiki.cgi?LanguagesVersusD), D
can not do
Am 07.05.2014 17:28, schrieb Bienlein:
Hello Sönke,
would it be possible in vibe.d to spawn a task the usual actor-style way
as it is done with kernel threads in D? What I mean is this:
void spawnedFunc(Tid tid)
{
receive(
(int i) { writeln(Received the number , i);}
);
}
auto
On Wednesday, 7 May 2014 at 16:51:10 UTC, amehat wrote:
D an not do reflection
It can, but it is different than Java. D can look at class
members at compile time, and can build up runtime tables, but it
takes a few tricks to do things like get methods of a derived
class.
it is limited to
Am 07.05.2014 19:06, schrieb Sönke Ludwig:
Am 07.05.2014 17:28, schrieb Bienlein:
Hello Sönke,
would it be possible in vibe.d to spawn a task the usual actor-style way
as it is done with kernel threads in D? What I mean is this:
void spawnedFunc(Tid tid)
{
receive(
(int i) {
Am 07.05.2014 18:51, schrieb amehat:
Hello everyone,
I'm working on porting a java library in D, and I stuck on a class
because it works with the reflection.
From what I've read on prowiki
(http://www.prowiki.org/wiki4d/wiki.cgi?LanguagesVersusD), D can not do
reflection, it is limited to the
On Wednesday, 7 May 2014 at 15:57:10 UTC, Andrei Alexandrescu
wrote:
Looks like there's consensus, time to choose the creative. Here
are a few examples:
- http://jquery.com/ (bottom)
- http://jqueryui.com/ (bottom)
- http://www.yiiframework.com/
- http://primefaces.org/
-
On 2014-05-07 2:40 AM, Jacob Carlborg wrote:
On 07/05/14 01:05, Etienne wrote:
I've just started using tkd and the memory usage is 3.4MB on windows for
a Hello World.
It requires a lot of tcl/tk source files (900 files) and 2 dlls, but I
think a workaround can be found for them to be packed
On Wednesday, 7 May 2014 at 16:51:10 UTC, amehat wrote:
Hello everyone,
I'm working on porting a java library in D, and I stuck on a
class because it works with the reflection.
From what I've read on prowiki
(http://www.prowiki.org/wiki4d/wiki.cgi?LanguagesVersusD), D
can not do
I have a very specific use case (JIT compiler) in which I have a
pre-allocated array of wchar string data stored somewhere in
memory. I'd like to be able to create a temporary D wstring
object to pass this as a regular string to other functions. For
performance reasons, it would be preferable
On Wednesday, 7 May 2014 at 18:26:08 UTC, Maxime
Chevalier-Boisvert wrote:
I have a very specific use case (JIT compiler) in which I have
a pre-allocated array of wchar string data stored somewhere in
memory. I'd like to be able to create a temporary D wstring
object to pass this as a regular
On Wednesday, 7 May 2014 at 15:57:10 UTC, Andrei Alexandrescu
wrote:
Looks like there's consensus, time to choose the creative. Here
are a few examples:
- http://jquery.com/ (bottom)
- http://jqueryui.com/ (bottom)
- http://www.yiiframework.com/
- http://primefaces.org/
-
On Wednesday, 7 May 2014 at 18:29:23 UTC, Brad Anderson wrote:
Unless I'm misunderstanding it should be as simple as:
wchar[100] stackws; // alloca() if you need it to be
dynamically sized.
A slice of this static array behaves just like a slice of a
dynamic array.
But you should avoid
Meta:
But you should avoid slicing the static array unless it's via
arr.dup.
Slicing fixed size arrays is often necessary, because many Phobos
functions don't accept fixed size arrays, they force you to lose
the compile-time knowledge of the length.
Bye,
bearophile
Unless I'm misunderstanding it should be as simple as:
wchar[100] stackws; // alloca() if you need it to be
dynamically sized.
A slice of this static array behaves just like a slice of a
dynamic array.
I do need it to be dynamically sized. I also want to avoid
copying my string data if
Maxime Chevalier-Boisvert:
I do need it to be dynamically sized.
But often you can determine statically a maximum length of the
string, so you can use a fixed size stack buffer and slice it
with a dynamic length. If this is not acceptable, then use alloca.
Basically, I just want to
This is named slicing. You can also slice a
global/static/__gshared buffer.
alloca returns a void*, then you can cast it to the pointer
type you want, and then you slice the pointer:
auto ptr = cast(wchar*)alloca(wchar.sizeof * len);
if (ptr == null) throw new Error(...);
auto mySlice =
Maxime Chevalier-Boisvert:
Is the slice going to be allocated on the stack? (I imagine the
answer is yes)
Slicing doesn't change where the data is allocated. Slicing means
just creating a new struct that contains a length and pointer to
the data (and the struct itself is allocated in-place.
On Wednesday, 7 May 2014 at 18:41:17 UTC, Maxime
Chevalier-Boisvert wrote:
Basically, I just want to create a wstring view on an
existing raw buffer that exists in memory somewhere, based on
a pointer to this buffer and its length.
Looks like you actually don't need to allocate anything at
Is the slice going to be allocated on the stack? (I imagine
the answer is yes)
Slicing doesn't change where the data is allocated. Slicing
means just creating a new struct that contains a length and
pointer to the data (and the struct itself is allocated
in-place. So it's allocated on the
On 2014-05-07 17:05, H. S. Teoh via Digitalmars-d wrote:
Huh? Isn't that what unittest blocks are about? To verify that certain
assumed conditions are actually true at runtime?
Verbal descriptions can be put in comments, if need be, can't they?
What Atila said.
--
/Jacob Carlborg
On Sunday, 4 May 2014 at 17:51:50 UTC, Andrei Alexandrescu wrote:
On 5/4/14, 9:19 AM, Gary Willoughby wrote:
On Sunday, 4 May 2014 at 14:09:38 UTC, w0rp wrote:
Best of luck to you guys. I encourage as many people as
possible to
give writing D GUI libraries a go, and perhaps we can all
learn
On 2014-05-07 20:18, Etienne wrote:
Sweet, as I see it works and there's plenty of documentation about swt.
Not much can beat a 2.6MB standalone application with a 2mb footprint!
It could use a dub.json file though
Yeah, that's on my todo list.
and the Color object gives me a memory error
On Tuesday, 6 May 2014 at 23:05:40 UTC, Etienne wrote:
It requires a lot of tcl/tk source files (900 files) and 2
dlls, but I think a workaround can be found for them to be
packed in an in-place unpacker app by compiling on top of it
(I'm looking into this right now). It would be good to have
On 2014-05-07 18:51, amehat wrote:
Hello everyone,
I'm working on porting a java library in D, and I stuck on a class
because it works with the reflection.
From what I've read on prowiki
(http://www.prowiki.org/wiki4d/wiki.cgi?LanguagesVersusD), D can not do
reflection, it is limited to the
On 5/7/14, 12:29 PM, Gary Willoughby wrote:
On Sunday, 4 May 2014 at 17:51:50 UTC, Andrei Alexandrescu wrote:
On 5/4/14, 9:19 AM, Gary Willoughby wrote:
On Sunday, 4 May 2014 at 14:09:38 UTC, w0rp wrote:
Best of luck to you guys. I encourage as many people as possible to
give writing D GUI
On Wed, 2014-05-07 at 12:53 -0700, Andrei Alexandrescu via Digitalmars-d
wrote:
[…]
9 AM PST. Will do tomorrow. -- Andrei
So what is that in ISO 8601 time. Get with the programme…
;-)
--
Russel.
=
Dr Russel Winder
On 5/4/2014 3:26 PM, Joseph Rushton Wakeling via Digitalmars-d wrote:
On 04/05/14 20:56, Nick Sabalausky via Digitalmars-d wrote:
So I think it's probably safe to figure this is a uniform distribution
unless
some expert chimes in and says otherwise.
Thanks for the help.
You're very welcome.
Le 07/05/2014 05:58, Manu via Digitalmars-d a écrit :
On 7 May 2014 08:07, Xavier Bigand via Digitalmars-d
digitalmars-d@puremagic.com wrote:
Le 06/05/2014 13:39, Paulo Pinto a écrit :
Android works well, I love my nexus, it proves to me that it's possible to
create really smooth
1 - 100 of 162 matches
Mail list logo