On 27 April 2015 at 15:58, Vlad Levenfeld via Digitalmars-d
wrote:
>> Phobos containers already support the first line, and it would be a
>> natural extension to make them support the second.
>
>
> Sure, it's not complicated. It's something I had done in this other code and
> showing for example.
On Monday, 27 April 2015 at 01:48:03 UTC, weaselcat wrote:
On Monday, 27 April 2015 at 01:28:01 UTC, Walter Bright wrote:
Now on the front page of Hacker News!
https://news.ycombinator.com/
Would be nice if "coherent ownership semantics" could be added
to the list of things D does better tha
On 27 April 2015 at 08:28, Iain Buclaw wrote:
> On 27 April 2015 at 07:22, Timo Sintonen via Digitalmars-d
> wrote:
>> On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote:
>>
>> Oops, I forget to uncomment the m4 options. The correct version is
>>>
>>>
>>> And I replace the whole gcc/co
On 27 April 2015 at 07:22, Timo Sintonen via Digitalmars-d
wrote:
> On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote:
>
> Oops, I forget to uncomment the m4 options. The correct version is
>>
>>
>> And I replace the whole gcc/config/arm/t-arm-elf with this:
>> MULTILIB_OPTIONS += mcp
On Sunday, 26 April 2015 at 20:44:00 UTC, Johan Engelen wrote:
I'd like to contribute to SDC too, but... the current build
system (Makefile) keeps me from working on it: I mostly work on
Windows, and I do not want to use MinGW/MSYS/Cygwin for this.
CMake would be a much nicer buildsystem for me
Phobos containers already support the first line, and it would
be a natural extension to make them support the second.
Sure, it's not complicated. It's something I had done in this
other code and showing for example.
On 26 April 2015 at 22:41, Jens Bauer via Digitalmars-d
wrote:
> On Sunday, 26 April 2015 at 18:23:47 UTC, Martin Nowak wrote:
>>
>> On 04/26/2015 07:29 PM, Jens Bauer wrote:
>>>
>>> Unfortunately, I have not been able to build with multilib yet, so my
>>> setup cannot build code for Cortex-M0; it
On Sunday, 26 April 2015 at 16:09:57 UTC, Martin Nowak wrote:
Nice, minilibd seems to be maintained as well, you happen to
know the
author?
I am the author of minlibd
I'd really like to see binary releases of GDC for arm-none-eabi
that
ship with a patched compiler (iff necessary) and minil
On Monday, 27 April 2015 at 05:19:52 UTC, Timo Sintonen wrote:
Oops, I forget to uncomment the m4 options. The correct version is
And I replace the whole gcc/config/arm/t-arm-elf with this:
MULTILIB_OPTIONS +=
mcpu=cortex-m0/mcpu=cortex-m3/mcpu=cortex-m4
mfloat-abi=hard mfpu=fpv4-sp-d16
MUL
On Sunday, 26 April 2015 at 18:23:47 UTC, Martin Nowak wrote:
The wiki says to disable multilib
(http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler#Build_GCC),
what's the problem? Maybe ask Iain/Johannes if it's GDC
specific.
I have also tried for years to build a working multil
On Sunday, 26 April 2015 at 18:48:15 UTC, Vlad Levenfeld wrote:
I've got a lib to enable this syntax:
Array!float a = b[].transform_1;
a[i..j] = c[x..y].transform_2;
Phobos containers already support the first line, and it would be
a natural extension to make them support the second.
On Monday, 27 April 2015 at 01:28:01 UTC, Walter Bright wrote:
Now on the front page of Hacker News!
https://news.ycombinator.com/
Would be nice if "coherent ownership semantics" could be added to
the list of things D does better than C++17
On Monday, 27 April 2015 at 01:28:01 UTC, Walter Bright wrote:
Now on the front page of Hacker News!
https://news.ycombinator.com/
I feel like nowadays its just a "Pick your poison" type of thing.
It seems like an arms race so i dont think neither will improve
upon the other.
Now on the front page of Hacker News!
https://news.ycombinator.com/
On Sunday, 26 April 2015 at 21:23:24 UTC, Baz wrote:
pubs.opengroup.org/onlinepubs/009695399/basedefs/_ctype.h.html
while it seems to be now:
pubs.opengroup.org/onlinepubs/9699919799/basedefs/ctype.h
i was wrong.
new links are for the specifications issue 7 but core.stdc API is
well complia
On 04/26/2015 01:37 AM, weaselcat wrote:
> https://github.com/hackwaly/pepper-nim
>
> Wonder how hard it would be to get D to do the same, or if it's worth
> the effort over trying to adapt LDC output to emscripten.
Manu was looking into this a little while a go.
https://github.com/ldc-developer
On Sunday, 26 April 2015 at 18:23:47 UTC, Martin Nowak wrote:
The wiki says to disable multilib
(http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler#Build_GCC),
what's the problem? Maybe ask Iain/Johannes if it's GDC
specific.
When I first started working with GDC, I had a hell
On Sunday, 26 April 2015 at 22:41:22 UTC, Ola Fosheim Grøstad
wrote:
Oh well, I don't think these debates have any effect on that.
People probably have an ability to set their own priorities
whether it is family or hackatons.
I think it's worth respecting Andrei's wishes for the week, we
can
On Sunday, 26 April 2015 at 11:33:07 UTC, Laeeth Isharc wrote:
Conceivable, but you can hardly control what people do with and
say about their use of a programming language, even of a closed
source commercial product. I guess one can submit pull
requests that take the language in the direction
On 4/26/2015 2:23 PM, Baz wrote:
By the way, the stdc ddoc headers include some invalid addresses, e.g:
pubs.opengroup.org/onlinepubs/009695399/basedefs/_ctype.h.html
while it seems to be now:
pubs.opengroup.org/onlinepubs/9699919799/basedefs/ctype.h
Please do a PR to fix those!
On Sunday, 26 April 2015 at 20:45:32 UTC, Walter Bright wrote:
On 4/26/2015 11:38 AM, Baz wrote:
Hi, is it worth documenting stdc ?
No. In general, D should not be re-documenting APIs where the
documentation exists elsewhere, because:
1. have to rewrite it because of copyright
2. such rewri
On Sunday, 26 April 2015 at 20:21:32 UTC, Ali Çehreli wrote:
Yes, a bug for floating types only. It seems that not the
common type but the first type is used among floating point
types. I wrote a short program to prove it to myself:
import std.traits;
import std.typetuple;
import std.format;
On Sunday, 26 April 2015 at 15:40:11 UTC, Andrei Alexandrescu
wrote:
On 4/26/15 4:33 AM, Laeeth Isharc wrote:
I'll leave it there as per Andrei's request about focusing on
the
hackathon.
Thanks! -- Andrei
thanks for what? need statistics that you make?
well i download and try, play --- and
On 4/26/2015 11:38 AM, Baz wrote:
Hi, is it worth documenting stdc ?
No. In general, D should not be re-documenting APIs where the documentation
exists elsewhere, because:
1. have to rewrite it because of copyright
2. such rewrites introduce errors and ambiguities
3. documentation always get
On Sunday, 26 April 2015 at 18:23:47 UTC, Martin Nowak wrote:
On 04/26/2015 07:29 PM, Jens Bauer wrote:
Unfortunately, I have not been able to build with multilib
yet, so my
setup cannot build code for Cortex-M0; it keeps stuffing
Cortex-M3 and
Cortex-M4 instructions in there.
The wiki says
I'd like to contribute to SDC too, but... the current build
system (Makefile) keeps me from working on it: I mostly work on
Windows, and I do not want to use MinGW/MSYS/Cygwin for this.
CMake would be a much nicer buildsystem for me.
Are you interested in switching to CMakeFile ?
(I am hoping s
On 04/26/2015 12:32 PM, Meta wrote:
import std.random;
auto test(int n)
{
if (n >= 0 && n < 33)
{
return int(0);
}
else if (n >= 33 && n < 66)
{
return float(0);
}
else
{
return real(0);
}
}
void main()
{
auto n = unif
Manu, I just saw your other post clarifying the code was float[N]
a = ..., not float[] a. That changes things a bit.
I just implemented a static array type in the lib (1-d only for
now) which can do the following:
unittest {
import std.range: only;
StaticArray!(int, 2) x;
On 26/04/2015 03:58, Andrei Alexandrescu wrote:
On 4/25/15 5:41 PM, Stewart Gordon wrote:
Even then, I wasn't able to do
it perfectly. Has anybody tried to use Ddoc to generate (for example)
LaTeX, RTF, XML or JSON output, for that matter?
LaTeX is there. I also wrote "text only" and "verba
import std.random;
auto test(int n)
{
if (n >= 0 && n < 33)
{
return int(0);
}
else if (n >= 33 && n < 66)
{
return float(0);
}
else
{
return real(0);
}
}
void main()
{
auto n = uniform(0, 100);
auto res = test(n);
//Prints
On Sunday, 26 April 2015 at 14:28:11 UTC, Baz wrote:
On Sunday, 26 April 2015 at 12:04:20 UTC, Laeeth Isharc wrote:
On Sunday, 26 April 2015 at 09:26:11 UTC, ponce wrote:
On Wednesday, 22 April 2015 at 19:51:23 UTC, ponce wrote:
I should put in in a d-idioms anyway.
http://p0nce.github.io/
On Sunday, 26 April 2015 at 10:17:59 UTC, Manu wrote:
I find that my lazy ranges often end up on the stack, but I
can't
assign/initialise directly: float[] a = b.transform[];
Instead I need to: float[] a; b.transform.copy(a[]);
To enable the first line, builtin arrays would need to be able to
Hi, is it worth documenting stdc ?
I'm about to copy all the docs from offical sources, e.g
http://www.cplusplus.com/reference/cctype/.
There's been a post from W.B a few weeks ago about undocumented
sources.
I don't remember if it included stdc.
On 04/26/2015 07:29 PM, Jens Bauer wrote:
> I may be able to put together some kind of recipe for building the
> GCC+GDC I have.
> Unfortunately, I have not been able to build with multilib yet, so my
> setup cannot build code for Cortex-M0; it keeps stuffing Cortex-M3 and
> Cortex-M4 instructions
Since I'm unable to rebuild phobos on my Windows 8.1 PC, would
someone else be interested, to apply a PR? The code (including
comment) would be this:
/**
Given an existing object $(D obj), reinitialize the object of $(D
class)
type $(D T) at that address. The constructor is passed the
ar
On 04/26/2015 09:16 AM, "Per =?UTF-8?B?Tm9yZGzDtnci?=
" wrote:
> I have a radix sort implementation at
>
> https://github.com/nordlow/justd/blob/master/intsort.d#L92intsort.d
>
> which beats Phobos own Quicksort by a factor 1.5 to 4 depending on
> element type (Intergral or FloatingPoint).
>
> A
On Sunday, 26 April 2015 at 16:34:09 UTC, Dicebot wrote:
On Sunday, 26 April 2015 at 15:55:34 UTC, Jens Bauer wrote:
Done.
http://wiki.dlang.org/Microcontroller_startup_files
Thanks! It is important for that information not be lost among
hundreds of NG posts, wiki is much more searchable.
On Sunday, 26 April 2015 at 16:09:57 UTC, Martin Nowak wrote:
On 04/26/2015 05:55 PM, Jens Bauer wrote:
Done.
http://wiki.dlang.org/Microcontroller_startup_files
-This is my first successful Wiki page, BTW. :)
Nice, minilibd seems to be maintained as well, you happen to
know the author?
I
On Sunday, 26 April 2015 at 15:55:34 UTC, Jens Bauer wrote:
On Sunday, 26 April 2015 at 14:18:24 UTC, Dicebot wrote:
On Sunday, 26 April 2015 at 07:04:06 UTC, Jens Bauer wrote:
Some of you already know that I've been working on startup
files for STM32F4xx and LPC17xx.
https://github.com/jens-
On 04/26/2015 08:18 AM, Rikki Cattermole wrote:
>
> I already asked on D.ldc. No reply.
> I even included links to the differences between what PNaCL supports and
> LLVM IR.
What are they supposed to say? Obviously doable but requires lots of work.
This is one of those particular interests that w
On Sat, 25 Apr 2015 09:50:46 -0400, Daniel Murphy
wrote:
"bitwise" wrote in message
news:op.xxishfi24sdys0@nicolass-macbook-pro.local...
I have a class with callbacks that can be overridden, which are
inherited from an extern(C++) interface. The callbacks are called from
C++ code. Is
On 04/26/2015 12:58 PM, Daniel Murphy wrote:
>
> Yes, if we had an AA in phobos.
Yes, I think phobos should get a few more optimized containers.
SparseSet
DenseSet
SparseHash
DenseHash
They should be configurable w.r.t. load factor, equality comparison, and
allocation policy (when std.allocator
On 04/26/2015 05:55 PM, Jens Bauer wrote:
> Done.
> http://wiki.dlang.org/Microcontroller_startup_files
>
> -This is my first successful Wiki page, BTW. :)
Nice, minilibd seems to be maintained as well, you happen to know the
author?
I'd really like to see binary releases of GDC for arm-none-eabi
On Sat, 25 Apr 2015 09:50:46 -0400, Daniel Murphy
wrote:
"bitwise" wrote in message
news:op.xxishfi24sdys0@nicolass-macbook-pro.local...
I have a class with callbacks that can be overridden, which are
inherited from an extern(C++) interface. The callbacks are called from
C++ code. Is
On Sunday, 26 April 2015 at 14:18:24 UTC, Dicebot wrote:
On Sunday, 26 April 2015 at 07:04:06 UTC, Jens Bauer wrote:
Some of you already know that I've been working on startup
files for STM32F4xx and LPC17xx.
https://github.com/jens-gpio/MCU
Please mention that in wiki.dlang.org
May be even
On 4/26/15 4:33 AM, Laeeth Isharc wrote:
I'll leave it there as per Andrei's request about focusing on the
hackathon.
Thanks! -- Andrei
On Sunday, 26 April 2015 at 12:04:20 UTC, Laeeth Isharc wrote:
On Sunday, 26 April 2015 at 09:26:11 UTC, ponce wrote:
On Wednesday, 22 April 2015 at 19:51:23 UTC, ponce wrote:
I should put in in a d-idioms anyway.
http://p0nce.github.io/d-idioms/#How-does-D-improve-on-C++17?
excellent.
I
On Sunday, 26 April 2015 at 07:04:06 UTC, Jens Bauer wrote:
Some of you already know that I've been working on startup
files for STM32F4xx and LPC17xx.
Since a number of people have shown interest in these files,
I've now merged those two repositories into one and improved it
for adding more
On 27/04/2015 1:12 a.m., Idan Arye wrote:
On Sunday, 26 April 2015 at 01:03:12 UTC, Rikki Cattermole wrote:
I'm personally moving towards a DSL.
unittest {
auto myQuery = """
using webdev.base.orm.query.parser.defs # allow for D class name
instead of table name
; # end of \"sentence\"
from
On Sunday, 26 April 2015 at 01:03:12 UTC, Rikki Cattermole wrote:
I'm personally moving towards a DSL.
unittest {
auto myQuery = """
using webdev.base.orm.query.parser.defs # allow for D class
name instead of table name
; # end of \"sentence\"
from MyModel
where key == $0
as simple
#
On 27/04/2015 12:10 a.m., Laeeth Isharc wrote:
On Sunday, 26 April 2015 at 01:03:12 UTC, Rikki Cattermole wrote:
I'm personally moving towards a DSL.
unittest {
auto myQuery = """
using webdev.base.orm.query.parser.defs # allow for D class name
instead of table name
; # end of \"sentence\"
On Sunday, 26 April 2015 at 01:03:12 UTC, Rikki Cattermole wrote:
I'm personally moving towards a DSL.
unittest {
auto myQuery = """
using webdev.base.orm.query.parser.defs # allow for D class
name instead of table name
; # end of \"sentence\"
from MyModel
where key == $0
as simple
#
On Sunday, 26 April 2015 at 10:17:59 UTC, Manu wrote:
Array operations are super cool, and I'm using ranges (which
kinda
look and feel like arrays) more and more these days, but I
can't help
but feel like their incompatibility with the standard array
operations
is a massive loss.
Let's say I
On Sunday, 26 April 2015 at 09:26:11 UTC, ponce wrote:
On Wednesday, 22 April 2015 at 19:51:23 UTC, ponce wrote:
I should put in in a d-idioms anyway.
http://p0nce.github.io/d-idioms/#How-does-D-improve-on-C++17?
excellent.
I linked it here: http://wiki.dlang.org/Coming_From
http://wiki.dlang.org/PortingOverview
Page was linked to but non-existent. I put a couple of links to
p0nce, and will try to fill it out a bit over time but perhaps
others could share their expertise.
Thanks.
Laeeth.
On Saturday, 25 April 2015 at 22:05:05 UTC, Ola Fosheim Grøstad
wrote:
On Saturday, 25 April 2015 at 14:48:41 UTC, Laeeth Isharc wrote:
I find it worrying that the evangelical D users are
perceiving D as a compiled scripting language and claim it is
similar to Python... D semantics are not at a
"Laeeth Isharc" wrote in message
news:hnihyhgtmdzhszkpn...@forum.dlang.org...
At a slight tangent: is there a way to reserve capacity for an associative
array? The obvious way does not seem to work.
No.
I noticed also in a talk at nativecode (possibly by Herb Sutter) that C++
gives you th
Naturally, where I wrote: float[] a = b.transform[];
I meant: float[N] a = b.transform[]; // <-- on the stack
On 26 April 2015 at 20:17, Manu wrote:
> Array operations are super cool, and I'm using ranges (which kinda
> look and feel like arrays) more and more these days, but I can't help
> but
Array operations are super cool, and I'm using ranges (which kinda
look and feel like arrays) more and more these days, but I can't help
but feel like their incompatibility with the standard array operations
is a massive loss.
Let's say I want to assign one range to another: b[] = a[];
It's not cl
On Saturday, 25 April 2015 at 05:16:21 UTC, Andrei Alexandrescu
wrote:
Found this on reddit a few days ago:
http://rob.conery.io/2015/04/17/rethinkdb-2-0-is-amazing/
A good discussion of the pros and cons of pipeline-style
queries (the ReQL query language reminiscent of D's
algorithms/ranges)
On Wednesday, 22 April 2015 at 19:51:23 UTC, ponce wrote:
I should put in in a d-idioms anyway.
http://p0nce.github.io/d-idioms/#How-does-D-improve-on-C++17?
On Sunday, 26 April 2015 at 06:43:22 UTC, Manu wrote:
Man, I suck so hard at navigating the std library! Practically
nothing
is named anything I expect or am familiar with >_<
It shouldn't be easier to write my own than to find what I want
in the lib.
There are some differences though; repeat
I have a radix sort implementation at
https://github.com/nordlow/justd/blob/master/intsort.d#L92intsort.d
which beats Phobos own Quicksort by a factor 1.5 to 4 depending
on element type (Intergral or FloatingPoint).
Anyone up for the job of adapting and merging it into Phobos'
std.algorithm.
Some of you already know that I've been working on startup files
for STM32F4xx and LPC17xx.
Since a number of people have shown interest in these files, I've
now merged those two repositories into one and improved it for
adding more vendors.
What I'd like you to do, is to tell me which micro
64 matches
Mail list logo