On 6/5/14, 6:05, 1100110 wrote:
On 5/31/14, 7:57, ed wrote:
On Saturday, 31 May 2014 at 07:28:32 UTC, Mineko wrote:
So, I've gotten interested in kernel programming in D.. And as much as
I like C/C++, I wanna try innovating, I'm aware that phobos/gc and any
OS-specific issues are goi
On 5/31/14, 7:57, ed wrote:
On Saturday, 31 May 2014 at 07:28:32 UTC, Mineko wrote:
So, I've gotten interested in kernel programming in D.. And as much as
I like C/C++, I wanna try innovating, I'm aware that phobos/gc and any
OS-specific issues are going to be a problem, but I'm willing to
imple
On 2/24/14, 12:40, monarch_dodra wrote:
Also, a "qstring" can only contain valid D tokens ("token string"). If
your mixin string does not adhere some the base D syntaxic rules, you'll
get a compilation error. In particular, you'll need balanced
bracing/parenthesising, and correctly formed tokens
On 2/24/14, 11:06, Gary Willoughby wrote:
On Monday, 24 February 2014 at 11:53:00 UTC, anonymous wrote:
On Monday, 24 February 2014 at 11:47:02 UTC, Namespace wrote:
On Monday, 24 February 2014 at 11:41:41 UTC, Gary Willoughby wrote:
I keep seeing this syntax used a bit and i'm stumped to what
On 10/10/2013 02:36 PM, Adam D. Ruppe wrote:
On Thursday, 10 October 2013 at 19:19:53 UTC, Ali Çehreli wrote:
import std.c.linux.termios;
worth noting that this is Linux only. doing it on Windows is a little
different.
Working with console/terminal input and output can get surprisingly
comple
On 10/03/2013 01:11 PM, Jonathan M Davis wrote:
On Thursday, October 03, 2013 15:22:28 Craig Dillabaugh wrote:
It seems that std.file should include a writeText() function for
the sake of consistency that is the above alias. When you come
across readText() in the documentation you sort of expect
https://xkcd.com/979/
Please. You are somebodies hero.
On 06/18/2013 01:53 PM, Gary Willoughby wrote:
Below is an example snippet of code to test for performance of regex
matches. I need to parse a large log and extract data from it and i've
noticed a huge increase in time of the loop when reading and using regex.
...
auto alert = regex(r"
On 05/17/2013 12:27 PM, Jonathan M Davis wrote:
> On Friday, May 17, 2013 19:19:46 bearophile wrote:
>> I think to answer this issue we need someone that knows more
>> about the DMD compiler (as Kenji Hara). I think that if we want
>> to forbid those variables in user code, then probably there is a
On 05/17/2013 09:35 AM, Maxim Fomin wrote:
> On Friday, 17 May 2013 at 14:12:10 UTC, Namespace wrote:
>> I don't see where k comes from?
>
> I think the point is that it comes from nowhere. Compiler incorectly
> omits two errors from output: "Error undefined indentifier" and
> "template instance e
On 05/16/2013 09:21 PM, Maxim Fomin wrote:
> On Thursday, 16 May 2013 at 22:53:56 UTC, Jack Applegame wrote:
>> Look at this code:
>>> import std.stdio;
>>>
>>> class Foo {
>>> int value = 123456;
>>> }
>>>
>>> struct Bar {
>>> this(Foo f) { foo = f; }
>>> @property auto lambda() {
>>> return (){
On 05/16/2013 08:21 AM, Byron Heads wrote:
> On Thu, 16 May 2013 08:11:35 -0500, 1100110 wrote:
>
>> On 05/16/2013 08:09 AM, Byron Heads wrote:
>>> I am working on d-leveldb wrapper (https://github.com/bheads/d-leveldb)
>>> and I need to be able to pass blocks of
On 05/16/2013 08:09 AM, Byron Heads wrote:
> I am working on d-leveldb wrapper (https://github.com/bheads/d-leveldb)
> and I need to be able to pass blocks of data between D and leveldb API.
> I am having rouble getting the byte size of dynamic arrays and POD
> classes.
>
> I can get the right s
On 05/08/2013 07:29 PM, H. S. Teoh wrote:
>
> No need to be embarrassed; it happens to the best of us. IME, some of
> the most frustrating, hair-pulling bugs that take hours (or days!) to
> get to the bottom of often turn out to be dead-easy trivial mistakes
> that got overlooked because they were
On 04/29/2013 08:14 AM, evilrat wrote:
> On Monday, 29 April 2013 at 12:46:01 UTC, Daniel Davidson wrote:
>> Ho do you debug D executables on mac os x in which debug symbols are
>> available (preferably a setup that works in emacs with gdb or gud-gdb)?
>>
> there is no solid solution as far as i kn
On 04/29/2013 06:50 AM, Timon Gehr wrote:
> On 04/29/2013 12:57 PM, Sumit Raja wrote:
>> Hi,
>>
>> I wanted some help in converting this
>>
>> void av_log_ask_for_sample(void *avc, const char *msg, ...)
>> av_printf_format(2, 3);
>>
>> from C to D.
>>
>> I don't know what it means or is called in C
On 03/29/2013 02:43 AM, Dmitry Olshansky wrote:
29-Mar-2013 00:54, 1100110 пишет:
On 03/28/2013 03:05 PM, Dmitry Olshansky wrote:
The built-in ones are a minefield for anything more complex then a
dictionary of string->int :)
Please, last I checked, they were still a minefield for t
On 03/28/2013 03:05 PM, Dmitry Olshansky wrote:
The built-in ones are a minefield for anything more complex then a
dictionary of string->int :)
Please, last I checked, they were still a minefield for that...
Random crashes, basic issues with the type system...
I just stopped using them...
Bu
On 03/16/2013 10:39 AM, 1100110 wrote:
On 03/16/2013 10:29 AM, Peter Sommerfeld wrote:
Cannot find a reference: What is the best way
to catenate a string multiple times ?
Unfortunately this this does not work ;-)
string tab = "..";
tab = tab * 4; // -> ""
Peter
On 03/16/2013 10:29 AM, Peter Sommerfeld wrote:
Cannot find a reference: What is the best way
to catenate a string multiple times ?
Unfortunately this this does not work ;-)
string tab = "..";
tab = tab * 4; // -> ""
Peter
foreach(0..4)
write("...");
On 02/07/2013 05:38 AM, monarch_dodra wrote:
On Thursday, 7 February 2013 at 10:55:26 UTC, Jonathan M Davis wrote:
On Thursday, February 07, 2013 11:06:14 monarch_dodra wrote:
Is there any way that a nothrow function can call a function that
throws, but without even trying to catch if an except
On 01/14/2013 12:25 PM, SaltySugar wrote:
Where i can find some good tutorials and books? :)
https://github.com/PhilippeSigaud/D-templates-tutorial
https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/D-templates-tutorial.pdf?raw=true
The second link is a direct pdf download of
On 01/14/2013 04:44 AM, mist wrote:
It appears that you cannot mixin *any* statement with
scope([exit,success,etc]) in it.
I have been rereading my copy of TDPL, and it states that mixin
statements must be valid D code, and there can be multiple 'scope()'
statements.
Since "scope(exit) writeln
On 01/14/2013 02:03 AM, Timon Gehr wrote:
On 01/14/2013 07:26 AM, 1100110 wrote:
On 01/13/2013 11:35 PM, 1100110 wrote:
Ok, I wish to create a standard timing system so that I can measure ~how
long each function takes to execute.
I wish to be able to place at the start of a function
version
On 01/13/2013 11:35 PM, 1100110 wrote:
Ok, I wish to create a standard timing system so that I can measure ~how
long each function takes to execute.
I wish to be able to place at the start of a function
version(Time) mixin TimeExecution("funcName");
mixin template TimeExecu
Ok, I wish to create a standard timing system so that I can measure
~how long each function takes to execute.
I wish to be able to place at the start of a function
version(Time) mixin TimeExecution("funcName");
mixin template TimeExecution(T) if(isSomeString!T) {
import std.stdio, std.date
On 01/13/2013 08:01 AM, Tomas wrote:
Hey, guys.
I need to get all running processes list, and kill one. (example: Find
all processes and if skype.exe is running, kill it.)
---
import std.stdio;
import std.process;
//assuming we want to kill "htop"
void main() {
killProcess("htop");
}
voi
On 11/28/2012 02:53 PM, Ali Çehreli wrote:
On 11/28/2012 11:11 AM, 1100110 wrote:
> On 11/28/2012 12:57 PM, Dmitry Olshansky wrote:
>> 11/28/2012 10:51 PM, Ali Çehreli пишет:
>>> A friend of mine reports that the memory usage of the following
program
>>> grows cont
On 11/28/2012 12:57 PM, Dmitry Olshansky wrote:
11/28/2012 10:51 PM, Ali Çehreli пишет:
A friend of mine reports that the memory usage of the following program
grows continuously when compiled with dmd 2.060 and run on Windows 7 sp1
home premium 64 bit (also on Microsoft Windows [Version 6.1.760
On 11/27/2012 01:56 PM, maarten van damme wrote:
Haven't looked at vibe.d yet because it looked more like a library for
writing web apps and normal sockets should be enough.
Didn't know about Tango, I'll try deciphering the original d1 module.
... I mean no offense, but that sounds painful.
On 11/26/2012 04:58 PM, maarten van damme wrote:
I was wondering if there ever was a telnet library written for D? I've
been unable to find anything. I also tried using curl but the timeout
options seem to fail here. I've tried writing a minimalistic client
myself but the library will be used to
Yeah. Though note that 1000 bug reports are from bearophile.
Well, at least he's persistent.
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
On Tue, 23 Oct 2012 22:50:46 -0500, Dan wrote:
The following takes nearly three minutes to compile.
The culprit is the line bar ~= B();
What is wrong with this?
Thanks,
Dan
struct B {
const size_t SIZE = 1024*64;
int[SIZE] x;
}
void main() {
B[] barr;
barr ~= B();
Other things I was unsure about:
libmysql, libc, libruby, lua don't have any D files at all - some are
just READMEs. Are these still under development?
libexif goes libexif/libexif/(d files) instead of
libexif/deimos/libexif/(d files). Also by design?
Let me amend that. I won't do libc. T
On Sun, 21 Oct 2012 00:52:02 -0500, Matt Soucy wrote:
I've been messing around with Deimos lately, and I was a little bit
confused about some of the design.
I saw that a couple (ZeroMQ, ncurses) didn't follow the usual structure
of having a c/ and a deimos/ folder. Is this by design, or is i
On Wed, 26 Sep 2012 13:06:03 -0500, Adam D. Ruppe
wrote:
On Wednesday, 26 September 2012 at 17:51:03 UTC, Thomas Koch wrote:
How can I read single characters?
The way I'd do it is with the C call fgetc(stdin). You can do it in D
the same way if you import core.stdc.stdio;
But, if you a
On Fri, 24 Aug 2012 16:05:28 -0500, Dmitry Olshansky
wrote:
On 25-Aug-12 00:52, 1100110 wrote:
On Fri, 24 Aug 2012 15:42:21 -0500, Dmitry Olshansky
wrote:
On 24-Aug-12 07:03, 1100110 wrote:
On linux this is not so difficult to do.
Those values are generally in /proc, and it seems to
On Fri, 24 Aug 2012 15:42:21 -0500, Dmitry Olshansky
wrote:
On 24-Aug-12 07:03, 1100110 wrote:
On linux this is not so difficult to do.
Those values are generally in /proc, and it seems to be portable across
pretty much every distro with a relatively recent kernel.
I have an extremely
On Thu, 23 Aug 2012 18:37:59 -0500, bearophile
wrote:
Charles Hixson:
Is it possible to detect when a program is using, say, 90% of the
memory that is available, so that I can take steps to reduce usage?
With computers that have virtual memory this is not so easy to do. I
think you hav
On Sun, 19 Aug 2012 19:26:34 -0500, Nvirjskly wrote:
On Sunday, 19 August 2012 at 23:48:36 UTC, 1100110 wrote:
Here are my results! iirc -release implies -noboundscheck..
Also I am on x64, and these files only compile to 32bit. So there could
be
performance missing there.
Wow, thanks
Here are my results! iirc -release implies -noboundscheck..Also I am on x64, and these files only compile to 32bit. So there could be performance missing there.rdmd --force -I../ -m32 -O -inline -release benchmark.d 26.00s user 0.23s system 99% cpu 26.386 total---2048 md2 in 1003 milliseconds: 15
iming everything right now.
...My laptop is getting hot...
I want to see how bad it crashes. =P
On Sun, 19 Aug 2012 17:17:02 -0500, Nvirjskly wrote:
On Sunday, 19 August 2012 at 21:11:13 UTC, 1100110 wrote:
I have gdc, dmd, and ldc installed on my computer.
I also forked your repo two minutes b
I have gdc, dmd, and ldc installed on my computer.
I also forked your repo two minutes before reading this.
Tell me what you want, and Ill run whatever tests you want.
But in return, I'm stealing your whirlpool.(with attribution of course.)
On Wed, 01 Aug 2012 05:36:07 -0500, Regan Heath
wrote:
On Wed, 01 Aug 2012 11:00:54 +0100, Gangadhar
wrote:
By using raw s ocket programing data transfer from client to server
please help me about this,any one have source code send me .
The phobos source contains socket code y
ompletely,
or(less acceptable IMO)
add a huge (See BUG 8557, 5448) to the top of http://dlang.org/hash-map
(But that's just my opinion)
What do you think?
On Sat, 18 Aug 2012 03:59:44 -0500, Era Scarecrow
wrote:
On Saturday, 18 August 2012 at 07:54:18 UTC, 1100110 wrote:
Is it su
Issue 8557 has been added to the database
On Sat, 18 Aug 2012 02:35:06 -0500, Simen Kjaeraas
wrote:
On Sat, 18 Aug 2012 07:11:38 +0200, 1100110 <10equa...@gmail.com> wrote:
I haven't been quite able to figure this one out.
string[string][] Dict;//sure ok.
a
On Sat, 18 Aug 2012 02:35:06 -0500, Simen Kjaeraas
wrote:
On Sat, 18 Aug 2012 07:11:38 +0200, 1100110 <10equa...@gmail.com> wrote:
I haven't been quite able to figure this one out.
string[string][] Dict;//sure ok.
alias string[string][] dict;//Error
void main()
I haven't been quite able to figure this one out.
string[string][] Dict;//sure ok.
alias string[string][] dict;//Error
void main()
{
Dict = [["Cow":"moo"
],["Duck":"quack"]];//cool
Dict ~= ["Dog":"woof"]
//No prob.
ass
Let me know if you see something weird, I haven't tried building that in a
long time.
(sorry for spam...)
On Sunday, 12 August 2012 at 21:04:55 UTC, 1100110 wrote:
Would this be useful?
https://github.com/1100110/OpenMPI
On Sunday, 12 August 2012 at 20:52:03 UTC, Simen Kjaeraas wrote:
On Sun, 12 Aug 2012 22:30:57 +0200, Andrew
wrote:
I'm attempting to create a wrappe
Would this be useful?
https://github.com/1100110/OpenMPI
On Sunday, 12 August 2012 at 20:52:03 UTC, Simen Kjaeraas wrote:
On Sun, 12 Aug 2012 22:30:57 +0200, Andrew
wrote:
I'm attempting to create a wrapper for MPI, however, MPI_Init
wants to read the arguments for main():
MPI_Ini
Also the Elementary repo has a wrapper for main() from E17, might be
useful.
On Sun, 12 Aug 2012 15:54:45 -0500, 1100110 <10equa...@gmail.com> wrote:
Would this help?
https://github.com/1100110/OpenMPI
On Sun, 12 Aug 2012 15:30:57 -0500, Andrew
wrote:
I'm attempting
Would this help?
https://github.com/1100110/OpenMPI
On Sun, 12 Aug 2012 15:30:57 -0500, Andrew wrote:
I'm attempting to create a wrapper for MPI, however, MPI_Init
wants to read the arguments for main():
MPI_Init(int *argv, char ***argc);
How do I get this last level of pointer refe
6 July 2012 at 21:54:15 UTC, 1100110 wrote:
I swear you guys read my mind sometimes... It's creepy.
I just had this very issue, doing the exact same thing, about an hour
ago.
Have you tried with -nodefaultlib -noruntime ? Cause that's what works
for me...
I just got *some
I swear you guys read my mind sometimes... It's creepy.
I just had this very issue, doing the exact same thing, about an hour ago.
Have you tried with -nodefaultlib -noruntime ? Cause that's what works
for me...
I just got *something* to compile with no runtime or std.
Whether or not it ac
Specifying them in the oposite order one the command line worked for me a
few days ago.
I swear.
On Sun, 01 Jul 2012 11:59:59 -0500, Gary Willoughby
wrote:
I'm using the built-in curl library on Linux i'm getting linker errors.
I've installed libcurl4-openssl-dev and it works fine as
On Fri, 22 Jun 2012 13:13:52 -0500, Minas Mina
wrote:
I'm sorry, what I meant was "how to interface to C code". Sorry for
writing it in a bad way.
Do I just declare the C code as extern and then link together with the C
.lib/.o/.so file? (I'm in Ubuntu)
What about the stuff that is in
On Mon, 11 Jun 2012 14:05:05 -0500, Mike Wey wrote:
On 06/11/2012 03:21 AM, 1100110 wrote:
http://svn.dsource.org/projects/gtkd/branches/070125merge/gtkD/src/gdk/Color.d
uint getValue()
{
return (gdkColor.red <<32) | (gdkColor.green << 16) |
(gdkColor.blue);
}
J
http://svn.dsource.org/projects/gtkd/branches/070125merge/gtkD/src/gdk/Color.d
uint getValue()
{
return (gdkColor.red <<32) | (gdkColor.green << 16) | (gdkColor.blue);
}
Just browsing through the source it looks like gtkColor.red is a ushort.
I get this error.
dmd -O -m64 -Isrc -c src
On Fri, 18 May 2012 21:31:57 -0500, Samuele Carcagno
wrote:
Pa_OpenStream
Does the result of calling Pa_GetVersionText() closely match the version
of the library installed on your computer?
I use Debian as well, and it's not exactly known for speedy updates...
If your version is too old
60 matches
Mail list logo