On Tuesday, 25 September 2018 at 21:20:29 UTC, Vladimir Panteleev
wrote:
Sometimes the database (SQLite)
SQLite was designed initially to be single local process, one
connection. You should get much better results with postgres
though of course it has some maintenance overhead (mainly
On Wednesday, 26 September 2018 at 03:46:21 UTC, dangbinghoo
wrote:
hi,
https://github.com/adamgreig/stm32-rs looks great, is there
something like this in Dlang?
thanks!
---
dangbinghoo
You might take a look at
https://github.com/JinShil/stm32f42_discovery_demo
and
Hello everyone. I am new here. I am an employee of Newtech armor,
a great manufacturer of body armor, we produce HAP, Bulletproof
Vest, Shield and Helmet. We used to tender for many armies from
different countries like Pakistan, and have established long-term
partnership with many counties. I
On Tuesday, 25 September 2018 at 11:03:11 UTC, John Burton wrote:
I need to write a library to statically link into a c program.
Can I write this library in D?
Will I be able to use proper D abilities like gc? Obviously the
public interface will need to be basic c callable functions...
I
hi,
https://github.com/adamgreig/stm32-rs looks great, is there
something like this in Dlang?
thanks!
---
dangbinghoo
On Wednesday, 26 September 2018 at 02:42:15 UTC, Vladimir
Panteleev wrote:
On Wednesday, 26 September 2018 at 02:28:27 UTC, CharlesM wrote:
If you're using SQLite you don't need to specify the size of
the columns, for what I gather it's useless for this DB.
Yep, this is mostly descriptive.
On Wednesday, 26 September 2018 at 02:28:27 UTC, CharlesM wrote:
If you're using SQLite you don't need to specify the size of
the columns, for what I gather it's useless for this DB.
Yep, this is mostly descriptive. Types in column declarations
have mostly the same effect.
And if I'm not
On Wednesday, 26 September 2018 at 01:52:31 UTC, H. S. Teoh wrote:
What version of SQLite are you using? AFAIK, SQLite itself
does support concurrent access. Though it does have to be
explicitly compiled with that option, otherwise it will only
issue a runtime error. Of course, locking is
On Tuesday, 25 September 2018 at 21:20:29 UTC, Vladimir Panteleev
wrote:
Sometimes the database (SQLite)
https://github.com/CyberShadow/DFeed/blob/master/schema.sql
CREATE TABLE [Groups] (
[Group] VARCHAR(50) NULL,
[ArtNum] INTEGER NULL,
[ID] VARCHAR(50) NULL
, Time INTEGER);
If you're
On Wednesday, 26 September 2018 at 01:52:31 UTC, H. S. Teoh wrote:
I don't know what your schema looks like, so it's hard to give
specifics
https://github.com/CyberShadow/DFeed/blob/master/schema.sql
On 09/24/2018 08:17 AM, 0xEAB wrote:
> - Non-idiomatic translations of tech terms [2]
This is something I had heard from a Digital Research programmer in
early 90s:
English message was something like "No memory left" and the German
translation was "No memory on the left hand side" :)
Ali
On Wed, Sep 26, 2018 at 01:07:29AM +, Vladimir Panteleev via Digitalmars-d
wrote:
[...]
> One thing possible with a traditional RDBMS that's not possible with
> SQLite is processing several simultaneous requests. The synchronous
> API translates to the synchronous nature of the entire
On Tuesday, 25 September 2018 at 10:34:17 UTC, aliak wrote:
When you do `digger install` it seems to not “install” a
`dmd.conf` but it does install the `dmd` binary in
`/usr/local/bin/dmd` - but that wasn’t built with `SYSCONFDIR`
so it doesn’t find `/usr/local/etc/dmd.conf` either, but even
On Tuesday, September 25, 2018 1:21:50 PM MDT Nick Sabalausky (Abscissa) via
Digitalmars-d wrote:
> On 09/25/2018 09:14 AM, Jonathan M Davis wrote:
> > On Tuesday, September 25, 2018 7:03:30 AM MDT FeepingCreature via
> >
> > Digitalmars-d wrote:
> >> I'm playing with a branch of DMD that would
On Tuesday, 25 September 2018 at 21:42:40 UTC, bachmeier wrote:
How much data can there possibly be for a mailing list?
Currently, 3.8 GB.
A good part of that is the full-text index required for
searching. (It does work really well, though - no need for Lucene
or such.)
I regularly see
On Tuesday, 25 September 2018 at 21:20:29 UTC, Vladimir Panteleev
wrote:
Sometimes the database (SQLite) behaves unusually slow until
you tell it to analyze itself, then it figures out some
internal index it has to use that it wasn't using before (with
no changes to schema). Those analysis
On Tuesday, 25 September 2018 at 21:12:54 UTC, Steven
Schveighoffer wrote:
Well, I thought it might be GC related also. It behaves
similarly to how you would expect a GC pause to behave (several
fast responses, then one that takes 5 seconds to come back).
I think that would be plausible if
On Tuesday, 25 September 2018 at 21:12:54 UTC, Steven
Schveighoffer wrote:
I'll note that when I started running into DB slowdowns on a
system (not related to D), adding one index fixed the issue.
Sometimes linear searches are fast enough to hide in plain
sight :)
I'm no DBA. Here's the
On 9/25/18 5:05 PM, H. S. Teoh wrote:
On Tue, Sep 25, 2018 at 08:41:51PM +, Vladimir Panteleev via Digitalmars-d
wrote:
On Tuesday, 25 September 2018 at 18:26:58 UTC, CharlesM wrote:
Yeah it happened again today. I heard this site was made in D, maybe
is because the GC?
No, just old
On Tue, Sep 25, 2018 at 08:41:51PM +, Vladimir Panteleev via Digitalmars-d
wrote:
> On Tuesday, 25 September 2018 at 18:26:58 UTC, CharlesM wrote:
> > Yeah it happened again today. I heard this site was made in D, maybe
> > is because the GC?
>
> No, just old server hardware and database
https://issues.dlang.org/show_bug.cgi?id=19265
--- Comment #1 from Tomáš Chaloupka ---
Other test case:
extern extern(C) int _d_run_main(int, char**, void*);
extern (C) int rt_init();
extern (C) int rt_term();
extern(C) int main(int argc, char** argv)
{
rt_init();
rt_term();
On Friday, 21 September 2018 at 00:57:42 UTC, Vladimir Panteleev
wrote:
Performance should now be back to normal.
Looks like my previous hunch as to why it was slow was off.
Should be fixed now.
On Tuesday, 25 September 2018 at 18:26:58 UTC, CharlesM wrote:
Yeah it happened again today. I heard this site was made in D,
maybe is because the GC?
No, just old server hardware and database fragmentation.
https://issues.dlang.org/show_bug.cgi?id=19265
Issue ID: 19265
Summary: Multiple calls to rt_init/rt_term leads to SIGILL in
_d_initMonoTime
Product: D
Version: D2
Hardware: x86_64
OS: Linux
I almost finished my -gc for Natvis experiment (to use MS C++
Debugger from VS Code, fully translating type names from what
comes from DMD frontend to valid C++ type name so Natvis works),
but then I encountered dAssocArray, which has form of: void* as
CodeView structure member, KeyType
On 09/22/2018 10:31 AM, Jonathan Marler wrote:
On Saturday, 22 September 2018 at 13:25:27 UTC, rikki cattermole wrote:
Then D isn't the right choice for you.
I think it makes for a better community if we can be more welcoming,
helpful a gracious instead of responding to criticism this way.
On 09/25/2018 06:34 AM, aliak wrote:
Alo,
I'm wondering what’s the deal with dmd.conf and what’s the correct way
to handle it with dmd installations.
Basically, you want an appropriate, matching `dmd.conf` together with
(ie, "in the same directory as") each `dmd` executable. No other
On 2018-09-25 16:20, FeepingCreature wrote:
If that's the way D wanted to go, it shouldn't have turned itself into a
metaprogramming monster that's completely unevaluable by Linter tools,
*or* it should offer some way to dump a fixed-format lowered
representation with line number information
On 2018-09-21 18:27, Neia Neutuladh wrote:
D's currently accepted identifier characters are based on Unicode 2.0:
* ASCII range values are handled specially.
* Letters and combining marks from Unicode 2.0 are accepted.
* Numbers outside the ASCII range are accepted.
* Eight random punctuation
On 09/25/2018 09:14 AM, Jonathan M Davis wrote:
On Tuesday, September 25, 2018 7:03:30 AM MDT FeepingCreature via
Digitalmars-d wrote:
I'm playing with a branch of DMD that would warn on unused
imports:
https://github.com/FeepingCreature/dmd/tree/feature/Issue-3507-warn-on-unu
sed-imports
Two
On 9/25/2018 1:49 AM, Chris wrote:
This said, I was working with a blind person a couple of years ago (I think it
was 3 years ago) and he used D for one of his assignments, he never had a
problem with the documentation.
That's good to hear.
On Tue, Sep 25, 2018 at 09:00:57PM +0200, Jacob Carlborg via Digitalmars-d
wrote:
> On 2018-09-25 13:55, Jonathan M Davis wrote:
>
> > Yes. You want dmd.conf, or certain paths won't be set correctly
> > (like where to find Phobos). Personally, I'd strongly suggest
> > against having multiple
On 2018-09-25 13:55, Jonathan M Davis wrote:
Yes. You want dmd.conf, or certain paths won't be set correctly (like where
to find Phobos). Personally, I'd strongly suggest against having multiple
copies of dmd installed at the same time. It just sounds like a recipe for
disaster. Regardless,
On 2018-09-22 10:48, Nemanja Borić wrote:
So it is possible to use D2 language and compiler and avoid all the
features that you don't like, at least to a reasonable degree, and as a
bonus you still get to cherry pick D2 features you like (and there are
some even for D1 minded person).
Yeah,
On 2018-09-22 15:29, wolframw wrote:
Hi,
I ran the dmd unittests on my Windows machine today and one of the tests
in filename.d asserted. The cause for this has already been noticed a
few days ago by someone else [1] but not by CI.
Is it well-known that the dmd unittests (at least for the
On Monday, 17 September 2018 at 11:02:39 UTC, Michael wrote:
...
Yeah it happened again today. I heard this site was made in D,
maybe is because the GC?
On Friday, 21 September 2018 at 00:57:42 UTC, Vladimir Panteleev
wrote:
On Monday, 17 September 2018 at 11:51:04 UTC, Vladimir
Panteleev wrote:
The high load is temporary, but will take a week or two to
resolve.
Performance should now be back to normal.
forum.dlang.org is temporarily down
On 9/25/18 10:13 AM, Jacob Carlborg wrote:
On Tuesday, 25 September 2018 at 12:05:21 UTC, Jonathan M Davis wrote:
If you use -betterC, then it's trivial, because your D program is
restricted to extern(C) functions and features which don't require
druntime. It can also be done without -betterC
https://issues.dlang.org/show_bug.cgi?id=19264
--- Comment #1 from Steven Schveighoffer ---
It shouldn't matter the constancy of the original.
This should also work:
assert("hello".byCodeUnit == "hello".dup.byCodeUnit);
--
https://issues.dlang.org/show_bug.cgi?id=19264
Issue ID: 19264
Summary: byCodeUnit should compare with strings
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: enhancement
On Tuesday, 25 September 2018 at 15:10:53 UTC, aberba wrote:
Aside using semantic HTML elements like strong, em,... the
WAI-ARIA standard follows. Also the use of title, alt and
tab-index is also encouraged in forms (where necessary).
This article highlights some of the most important
On Tuesday, 25 September 2018 at 13:16:14 UTC, Chris wrote:
The captchas are awful, why would you want to waste brain
cycles on that if you wanna send a one line response or so...
If it is for mitigate spam/bot, you can easily by pass it with a
simple script[1].
I'd prefer a captcha system
On Tuesday, 25 September 2018 at 07:43:39 UTC, Kagamin wrote:
I don't think you can go into programming from absolute zero.
So I assume for what you're saying that anybody who comes here
already knows at least: ternary, promotion, implicit casting.
For example: If a person knows VB/Delphi
On Monday, 24 September 2018 at 15:19:01 UTC, Chris wrote:
On Monday, 24 September 2018 at 03:50:57 UTC, Vladimir
Panteleev wrote:
On Monday, 24 September 2018 at 03:16:50 UTC, Bauss wrote:
like the use of b tags on the front page, they should be
replaced by strong tags
The two usages of
On Tuesday, 25 September 2018 at 14:28:48 UTC, FeepingCreature
wrote:
Maybe stick the info in -v or -deps?
Actually, -deps is the perfect place for it. It needs to
recursively evaluate modules anyways, so it'll see an import even
if it was only used from a template. And it doesn't spam up
On Tuesday, 25 September 2018 at 14:15:32 UTC, Dominikus Dittes
Scherkl wrote:
On Tuesday, 25 September 2018 at 13:03:30 UTC, FeepingCreature
wrote:
I'm playing with a branch of DMD that would warn on unused
imports:
On Tuesday, 25 September 2018 at 13:14:36 UTC, Jonathan M Davis
wrote:
If something is definitively wrong, then it should be an error.
If it's not definitively wrong, then the compiler shouldn't say
anything about it, and it should be left up to a linter tool of
some kind like dcd.
-
On Tuesday, 25 September 2018 at 13:03:30 UTC, FeepingCreature
wrote:
I'm playing with a branch of DMD that would warn on unused
imports:
https://github.com/FeepingCreature/dmd/tree/feature/Issue-3507-warn-on-unused-imports
Two problems have arisen.
First:
import std.stdio;
void foo(T)() {
On Tuesday, 25 September 2018 at 12:05:21 UTC, Jonathan M Davis
wrote:
If you use -betterC, then it's trivial, because your D program
is restricted to extern(C) functions and features which don't
require druntime. It can also be done without -betterC (and
thus with druntime), but it gets to
On Tuesday, 25 September 2018 at 13:03:30 UTC, FeepingCreature
wrote:
I'm playing with a branch of DMD that would warn on unused
imports:
Honestly, I hate these types of warnings/errors. It makes playing
with and designing code such a chore. I hope this is opt-in.
On Tuesday, 25 September 2018 at 12:33:30 UTC, RazvanN wrote:
After discussing with Walter and Andrei we have decided that we
are going to drop @implicit for now as it may cause bugs (as
Jonathan has highlighted) and consider constructors that have
the form this(ref $q1 S rhs) $q2 as copy
On Saturday, 22 September 2018 at 16:48:35 UTC, SashaGreat wrote:
I'll not create a topic to check this behavior, but this
message doesn't show up when replying inside a topic.
PS: By the way the CAPTCHA is awful, look what they throw to us:
int v()
{
return 26 % 3
? 13 / 3
: 42
On Tuesday, September 25, 2018 7:03:30 AM MDT FeepingCreature via
Digitalmars-d wrote:
> I'm playing with a branch of DMD that would warn on unused
> imports:
>
> https://github.com/FeepingCreature/dmd/tree/feature/Issue-3507-warn-on-unu
> sed-imports
>
> Two problems have arisen.
>
> First:
>
>
On Tuesday, 25 September 2018 at 13:03:30 UTC, FeepingCreature
wrote:
I'm playing with a branch of DMD that would warn on unused
imports:
[...]
For instance, I've been thinking about hiding the warning behind
an additional flag (-wunused-imports or -wu?) so that it's
opt-in. Would that be
I'm playing with a branch of DMD that would warn on unused
imports:
https://github.com/FeepingCreature/dmd/tree/feature/Issue-3507-warn-on-unused-imports
Two problems have arisen.
First:
import std.stdio;
void foo(T)() { writeln("Hello World"); }
foo.d: Warning: unused import
To be fair,
On Tuesday, September 25, 2018 6:33:30 AM MDT RazvanN via Digitalmars-d-
announce wrote:
> After discussing with Walter and Andrei we have decided that we
> are going to drop @implicit for now as it may cause bugs (as
> Jonathan has highlighted) and consider constructors that have the
> form
When I make code that I expect to be only used around here, I
generally write the code itself in english but comments in my own
language. I agree that in general, it's better to stick with
english in identifiers when the programming language and the
standard library is English.
On Tuesday,
On Tuesday, September 25, 2018 5:03:11 AM MDT John Burton via Digitalmars-d-
learn wrote:
> I need to write a library to statically link into a c program.
> Can I write this library in D?
> Will I be able to use proper D abilities like gc? Obviously the
> public interface will need to be basic c
On Tuesday, September 25, 2018 4:34:17 AM MDT aliak via Digitalmars-d wrote:
> Alo,
>
> I'm wondering what’s the deal with dmd.conf and what’s the
> correct way to handle it with dmd installations.
>
> Scenario: `brew install dmd` puts dmd in `/usr/local/bin/dmd`
> (symlink) and sets the
On Tuesday, 25 September 2018 at 07:43:39 UTC, Kagamin wrote:
On Monday, 24 September 2018 at 12:56:43 UTC, JN wrote:
Well, it requires you to know what a ternary operator is
It wouldn't be a captcha if the questions were like "what is
the most popular social network?". Also int doesn't
On Tuesday, 25 September 2018 at 08:49:13 UTC, Chris wrote:
On Tuesday, 25 September 2018 at 06:01:58 UTC, bauss wrote:
On Monday, 24 September 2018 at 03:50:57 UTC, Vladimir
Panteleev wrote:
On Monday, 24 September 2018 at 03:16:50 UTC, Bauss wrote:
like the use of b tags on the front page,
https://issues.dlang.org/show_bug.cgi?id=19263
Issue ID: 19263
Summary: Segfault trying to print out a default-initialized
SysTime
Product: D
Version: D2
Hardware: All
OS: Linux
Status: NEW
I need to write a library to statically link into a c program.
Can I write this library in D?
Will I be able to use proper D abilities like gc? Obviously the
public interface will need to be basic c callable functions...
I 'main' is a c program will this work?
Alo,
I'm wondering what’s the deal with dmd.conf and what’s the
correct way to handle it with dmd installations.
Scenario: `brew install dmd` puts dmd in `/usr/local/bin/dmd`
(symlink) and sets the `SYSCONFDIR` in its build config so
`dmd.conf` is in `/usr/local/etc/dmd.conf`.
AFAICT:
On Friday, 21 September 2018 at 23:17:42 UTC, Seb wrote:
In all seriousness I hate it when someone thought its funny to
use the lambda symbol as an identifier and I have to copy that
symbol whenever I want to use it because there's no convenient
way to type it.
(This is already supported in
On 9/23/2018 12:06 PM, Abdulhaq wrote:
The early history of computer science is completely dominated by cultures who
use latin script based characters,
Small character sets are much more implementable on primitive systems like
telegraphs and electro-mechanical ttys.
It wasn't even practical
On Tuesday, 25 September 2018 at 06:01:58 UTC, bauss wrote:
On Monday, 24 September 2018 at 03:50:57 UTC, Vladimir
Panteleev wrote:
On Monday, 24 September 2018 at 03:16:50 UTC, Bauss wrote:
like the use of b tags on the front page, they should be
replaced by strong tags
The two usages of
On Monday, 24 September 2018 at 12:56:43 UTC, JN wrote:
Well, it requires you to know what a ternary operator is
It wouldn't be a captcha if the questions were like "what is the
most popular social network?". Also int doesn't implicitly
convert to bool.
On Tuesday, 25 September 2018 at
On Monday, 24 September 2018 at 03:50:57 UTC, Vladimir Panteleev
wrote:
On Monday, 24 September 2018 at 03:16:50 UTC, Bauss wrote:
like the use of b tags on the front page, they should be
replaced by strong tags
The two usages of are part of the presentation, not
content. Their use is
On Tuesday, 25 September 2018 at 05:52:57 UTC, bauss wrote:
Not for someone who is just introduced to programming and
doesn't D want to attract newcomers? If so we cannot have a
programmer specific captcha.
https://forum.dlang.org/post/vrehthdqtenpnysru...@forum.dlang.org
Please address the
On Tuesday, 25 September 2018 at 05:57:06 UTC, bauss wrote:
On Monday, 24 September 2018 at 03:50:57 UTC, Vladimir
Panteleev wrote:
The two usages of are part of the presentation, not
content. Their use is correct.
I disagree:
That doesn't address the argument. A program can't know whether
On Monday, 24 September 2018 at 03:50:57 UTC, Vladimir Panteleev
wrote:
On Monday, 24 September 2018 at 03:16:50 UTC, Bauss wrote:
like the use of b tags on the front page, they should be
replaced by strong tags
The two usages of are part of the presentation, not
content. Their use is
72 matches
Mail list logo