Z80 Emulation Engine
quick-and-dirty port of my Zymosis Z80 emulation engine to D. code was built from scratch and not using huge tables to generate huge sources (it's just one module with source size ~64KB). it properly emulates all known Z80 quirks (including MEMPTR register) and passes all 1335 tests from FUSE. sorry, it uses GDC @attribute(forceinline) feature, so you need latest GDC to build it. it's not strictly necessary though (speed optimizations? who needs that speed optimizations with current CPUs?!) and can be hacked away with this piece of code: version(GNU) { import gcc.attribute; } else { private struct Attribute(A...) { A args; } auto attribute(A...) (A args) if (A.length 0 is(A[0] == string)) { return Attribute!A(args); } } i'm pretty sure that this is the first Z80 emulator written in D. %-) ah, nearly forgot to give repo URL: http://repo.or.cz/w/zymosis.d.git
Re: Z80 Emulation Engine
On Sunday, 20 April 2014 at 13:08:02 UTC, bearophile wrote: sorry, it uses GDC @attribute(forceinline) feature, so you Have you performed a benchmark with and without that attribute? not on this code yet. will check it someday, http://repo.or.cz/w/zymosis.d.git In this kind of code computed gotos could help performance. i don't think so: it's not a 'table-driven executor', it does proper instruction decoding by various opcode bitfields like Z80 do. this is by design. so i can't just make a huge table for computed goto. struct { ubyte c, b; }; Struct definitions in D don't end with the semicolon. ah. tnx, this is a C code leftovers. maybe compiler should emit warnings on superfluous semicolons? I suggest to omit the space between the function name and its arguments. sorry, but i will not change my coding style. i may use original author's style when sending patches, but i'm used to my own for my projects. And if you want you can also add an in: tnx, will do. And perhaps it's better to use enum values instead of magic constants. this is hardware magic by itself. %-) i don't think that constants like 'BIT7MASK' and 'BITS0TO6MASK' will look prettier here. static __gshared ubyte parity_tbl[256]; Better to use the D syntax: static __gshared ubyte[256] parity_tbl; ah, C leftovers again, changed, tnx. thanks for all your comments and suggestions. i'm still D newbie, so they are valuable input.
Re: Z80 Emulation Engine
On Sunday, 20 April 2014 at 15:17:56 UTC, Manu via Digitalmars-d-announce wrote: https://github.com/TurkeyMan/superemu wow, my google-fu is bad than. %-) doing 'git clone' right now. btw, what is the license for your code? Funny you make a point of forceinline, I have forceinline placeholders all over my emulators too ;) i think that almost any emulator writer just can't resist the urge to 'help' compiler this way. %-)
Re: Z80 Emulation Engine
btw, what is the license for your code? I don't really care. Refer to it as much as you like. so maybe you will add license to sources? WTFPL, for example, which basically means public domain. the thing is that sources without license are proprietary, and nobody except the author can do anything with that. I have larger plans for this project, but I've been distracted with other apparently more important things. same thing here. %-) It might be fun to collaborate if you're interested...? i'm actually know only one vintage computer: ZX Spectrum. and sadly i have not much time now. but this surely will be fun, so i hope that i will be able at least help a little here and there. %-) p.s. zymosis was written a long time ago in C, when i realized that there is NO Z80 emulator which is: 1. accurate. 2. does not need alot of tables to generate 400kb of shitty source code. 3. written by me. %-) zymosis.d was just a quick port from C which i did in two or three evenings. one of the goals wal to see how easy it will be to port such a messy code, 'cause i'm planning to use D in my future projects and eventually port all my homebrew C libraries to D. and when zymosis.d compiled first time it immediately passes almost all tests. very impressive. then i decided to announce the thing here — just in case if anybody will need such thing. there is no much sense to let it rotting on my hdd.
Re: Z80 Emulation Engine
If something's open source with no commercial intent, is there good reason not to use gpl? How hard is it to change later? i don't see a reason not to use GPL even on commercial code. %-)
TweetNaCl port
this is quick-and-dirty port of TweetNaCl to D. it's not a proper 'D rewrite' of TweetNaCl, it still shows it's C roots, but it works. and it has test suite and ddoc which original TweetNaCl lacks. WARNING! API is subject to change. but you can take the current version and use it as-is if the current API is ok for you. http://repo.or.cz/w/tweetnacl.d.git p.s. somehow i have feeling that somebody already did that and i failed my google-foo again.
Re: DMD v2.066.0-b4
bug tracker is just a thing to collecting dust. you can write your report there, or to /dev/null, or not write it at all -- the result will be the same. i know at least 3 bugs in phobos and at least one very nasty bug in compiler (which causes UB, so-called heisenbug), but have no motivation to report. did i mention that i have fixes too? but it's ok, spice must flow, new releases must be done. signature.asc Description: PGP signature
Re: DMD v2.066.0-b4
On Wed, 16 Jul 2014 06:39:56 + uri via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: You spent the effort implementing a fix, the time talking about your fix but cannot be buggered submitting a PR for the fix? one fix at a time, not more. the first one is still sitting in bugtracker, collecting dust. maybe after it will be reviewed i'll find some motivation to fill another ticket... in a month... or two... or six... anyway, sorry for the noise. i'm really annoyed and just wanted to tell the world about it. sorry again. signature.asc Description: PGP signature
Re: DMD v2.066.0-b4
On Tue, 15 Jul 2014 23:03:38 -0700 Andrei Alexandrescu via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: You mean http://issues.dlang.org? That's used regularly. oh, really? https://issues.dlang.org/show_bug.cgi?id=12853 Whatcha waiting for? reports + pull requests please. Thanks! -- Andrei have no motivation. and no, i'm neither using github, nor planning to use it in the current millenia. that's why i'm saying that issues.dlang.org is just a dust collector: no guthub pull request? your bug will sit in issues.dlang.org for indefinite time. so what is the sense in issues.dlang.org existence? it should be closed to stop frustrating people. signature.asc Description: PGP signature
Re: DMD v2.066.0-b4
On Wed, 16 Jul 2014 12:19:43 + Dragos Carp via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Fix is in Bugzilla attached, though without an unittest demonstrating the error. test is in bugzilla, but it's not formatted as unittest, just as standalone module copypasted in comments. my fault, i'm really sorry. signature.asc Description: PGP signature
Re: DMD v2.066.0-b4
On Wed, 16 Jul 2014 14:53:07 +0200 Lionello Lunesu via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: It's fine, I can create the PR for you there is one already, but without tests: https://github.com/D-Programming-Language/phobos/pull/2336 You'll get the credit as well, of course. i don't care about credits, especially for such trivial fix. consider that code as Public Domain or WTFPL. signature.asc Description: PGP signature
Re: Programming in D book is 100% translated
On Thu, 24 Jul 2014 01:11:00 -0700 Ali Çehreli via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I have completed the translation of the book. great news! and great book. thank you. signature.asc Description: PGP signature
Cassowary.d
preliminary, but working port of Cassowary Solver — GUI-oriented constraint solver, toolkit-agnostic layout engine. it's not D-spirited yet, but it works. todo list includes templated classes and bindings for gtk.d. feel free to fork and improve. url: http://repo.or.cz/w/cassowary.d.git
Re: Cassowary.d
On Sun, 27 Jul 2014 12:01:45 + Yuriy via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: +1 http://code.dlang.org/packages/cassowary-d damn it! my google-fu sux again. i did search and found nothing, so made a port. feel so stupid now... signature.asc Description: PGP signature
Re: Cassowary.d
On Sun, 27 Jul 2014 15:16:07 +0300 ketmar via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: heh. but i have a nice text parser! so it's not a completely trashcan work. ;-) signature.asc Description: PGP signature
Re: SDC-32bit
On Tue, 29 Jul 2014 13:36:37 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: wow. signature.asc Description: PGP signature
Re: SDC-32bit
On Tue, 29 Jul 2014 15:43:56 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: ah. sure i'll try to write you about every bug i found. %-) signature.asc Description: PGP signature
Re: SDC-32bit
On Wed, 30 Jul 2014 09:39:15 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: can't link it. GNU/Linux, x86, latest DMD from git. lib/libd.a(semantic.o): In function `_D1d3ast10expression56__T15UnaryExpressionTC1d3ast10expression13AstExpressionZ15UnaryExpression11__T6__ctorZ6__ctorMFS1d8location8LocationE1d3ast10expression7UnaryOpC1d3ast10expression13AstExpressionZC1d3ast10expression56__T15UnaryExpressionTC1d3ast10expression13AstExpressionZ15UnaryExpression': ... and so on LLVM 3.4.2, so prerequisites are ok. signature.asc Description: PGP signature
Re: SDC-32bit
On Fri, 01 Aug 2014 15:07:56 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: hmm it looks like you are not linking llvm in ... but i am. %-) or, better to say, your makefile doing it with `llvm-config --libs`. do you use the most recent version from my sdc32-experimental repo ? yes, just cloned it before sending report. commit 34fdd6a73e6137173a3840218a76dfd2f6c50d68 so you have to `make` it :D yes, i read README and did 'make'. %-) actually, i'm not using DUB at all. and before anyone will ask: it's Slackware, there is no need to install any '-devel' packages. %-) also please note that i'm using the lastest DMD git, not any of the officially released versions. and gcc 4.9.1. p.s. maybe i should rebuild llvm from sources before we continue. i'll try to do it tomorrow. signature.asc Description: PGP signature
Re: SDC-32bit
On Fri, 01 Aug 2014 15:33:05 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: please do `git pull` and if the error presists post the full error-message on dpaste or similar. you're welcome. upgated to git commit 58a36a1acdc6b9a5bcd07edf69b958c3b4ac1657 build log: http://dpaste.com/2NBTC2W signature.asc Description: PGP signature
Re: SDC-32bit
On Fri, 01 Aug 2014 15:40:31 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Are you on a 64bit system ? no, i said somewhere in the previous messages that i'm using x86 arch. %-) signature.asc Description: PGP signature
Re: SDC-32bit
On Fri, 01 Aug 2014 15:54:42 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: AFAICS this it because you are using dmd-master if it fails with the dmd-2.065 then I have a real nut to crack sorry, you are right. downgrading to dmd-2.065 fixes the build. signature.asc Description: PGP signature
Re: SDC-32bit
On Fri, 01 Aug 2014 21:58:58 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: enableing multihtreading and such i explititely passes runner.d -j1 (other cores has work to do too %-) signature.asc Description: PGP signature
Re: SDC-32bit
On Fri, 01 Aug 2014 22:16:50 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: sh buildTester.sh alas, i have no LLVMArchive, and it refuses to link without it. when i removed -L-lLLVMArchive, it says that /usr/lib/gcc/i486-slackware-linux/4.9.1/../../../libLLVMSupport.a(Process.o): In function `llvm::sys::Process::FileDescriptorHasColors(int)': Process.cpp:(.text+0x948): undefined reference to `setupterm' Process.cpp:(.text+0x962): undefined reference to `tigetnum' Process.cpp:(.text+0x975): undefined reference to `set_curterm' Process.cpp:(.text+0x97d): undefined reference to `del_curterm' collect2: error: ld returned 1 exit status signature.asc Description: PGP signature
Re: SDC-32bit
On Sat, 2 Aug 2014 01:37:33 +0300 ketmar via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: damn, it's hard to switch between two dmds. ok, i compiled everything, here's the timings: ./runner 2 /dev/null /dev/null 21.39s user 1.48s system 146% cpu 15.643 total ./jsonRunner 2 /dev/null /dev/null 2.60s user 0.76s system 86% cpu 3.899 total signature.asc Description: PGP signature
Re: SDC-32bit
On Fri, 01 Aug 2014 23:16:43 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Thanks for your cooperation! you're welcome. %-) signature.asc Description: PGP signature
Re: SDC-32bit
On Sat, 02 Aug 2014 03:27:58 + deadalnix via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I got that error recently. It is an LLVM bug and upgrading LLVM should do the trick. in my case it was nothing with LLVM. sdc-32 needs dmd-2.065, and i'm using dmd-2.066-master. switching to 2.065 resolves the issue. signature.asc Description: PGP signature
Re: SDC-32bit
On Fri, 01 Aug 2014 15:49:09 + Stefan Koch via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: it must have a commit I have squashed. I do this quite often since sometimes I commit stuff that causes my build to fail :p btw, please, don't do that. just revert commits, there's no need to rewrite the history hard way. or use branches and do cherry-picking, it's easy once you get used to it. signature.asc Description: PGP signature
Re: GtkD 2.4.0 released, GTK+ with D.
On Tue, 05 Aug 2014 23:12:43 +0200 Mike Wey via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: GtkD is a D binding and OO wrapper of Gtk+ and is released on the LGPL license. The most notable changes in this release are the discontinuation of the support for D1, and better support for installing more than one version of GTK+ on Windows. A full list of changes is available in the change log: http://gtkd.org/changelog.html GtkD 2.4.0 is now available on gtkd.org: http://gtkd.org/download.html Unlike previous releases this one doesn't come with an update to the latest release of GTK+. This is being worked on but changes in the gtk documentation means we need to switch to the gir files for generating the code. good news, everyone! ;-) it's sad that gtk+2 version is not in active developement anymore. gtk+3 is abomination. signature.asc Description: PGP signature
Re: Cassowary.d
a small update for parser: it is now possible to parse so-called scripts (only from 'string' type for now). sample script can look like this one, which centers two buttons inside the panel, keepeng equal button sizes: ===[cutline]=== var(stay) panel.left = 0, panel.top = 0, panel.width = 80, panel.height = 20; // this is just a simple constants, // use 'define' to avoid introducing new vars define button.hpadding = 4, button.defheight = 10+6; // simple math var bt0.left, // default is 0 bt0.top, stay bt0.width = 30, stay bt0.height = button.defheight; // oh, yeah, this will be calculated in-place var bt1.left, bt1.top, bt1.width, bt1.height; // some useful macros define panel.right = (panel.left+panel.width), panel.bottom = (panel.top+panel.height), bt0.right = (bt0.left+bt0.width), bt0.bottom = (bt0.top+bt0.height), bt1.right = (bt1.left+bt1.width), bt1.bottom = (bt1.top+bt1.height); // button-button placement and sizes // default strength is required bt1.left = bt0.right+button.hpadding; // buttons padding bt1.height == bt0.height; // same height bt1.width == bt0.width; // same width bt1.top == bt0.top; // same vertical position // button-panel placement (this should center buttons) // horizontal bt0.left-panel.left == panel.right-bt1.right; // vertical bt0.top-panel.top == panel.bottom-bt0.bottom; // print values (for debug mode) print panel.left; print panel.top; print panel.width; print panel.height; print bt0.left; print bt0.top; print bt0.width; print bt0.height; print bt1.left; print bt1.top; print bt1.width; print bt1.height; ===[cutline]=== there is no support for any kind of 'autobinding' variables to class/struct properties yet, and parser code is awful. but the whole thing is slowly growing… anyway, it's really fun to play with various layout scripts. try it yourself!
simple taglib bindings
subj. C API wrapped in a nice struct (WARNING! ugly mixins inside!). there is no extensive documentation (oh, c'mon, do you really need it?), but repo contains sample tag viewer/editor. requires taglib_c (C wrapper from the original taglib package). repo: http://repo.or.cz/w/taglib.d.git
Re: COFF support for Win32 merged
On Sun, 17 Aug 2014 10:50:38 + bearophile via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I have just recompiled dmd, but I don't see that new compiler switch (dmd 2.067). are you sure that you compiled dmd for 32-bit windows? other versions seems to not have this flag. signature.asc Description: PGP signature
Re: COFF support for Win32 merged
On Sun, 17 Aug 2014 11:34:59 + bearophile via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Yes, I am using a 32 bit Windows. are you sure that you have latest git then? yes, i know that this is very silly question, but sometimes... ;-) unfortunately, i have no windows boxes (neither cross-compilers), so can't check it myself. but i see this in mars.c: #if TARGET_WINDOS else if (strcmp(p + 1, m32mscoff) == 0) { global.params.is64bit = 0; global.params.mscoff = true; } #endif ... static const char* parse_arch(size_t argc, const char** argv, const char* arch) { for (size_t i = 0; i argc; ++i) { const char* p = argv[i]; if (p[0] == '-') { if (strcmp(p + 1, m32) == 0 || strcmp(p + 1, m32mscoff) == 0 || strcmp(p + 1, m64) == 0) arch = p + 2; else if (strcmp(p + 1, run) == 0) break; } } return arch; } so i believe that it should work. signature.asc Description: PGP signature
Re: COFF support for Win32 merged
On Sun, 17 Aug 2014 13:01:06 + bearophile via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: OK, -m32mscoff works (probably I was using a wrongly written switch), but I don't see it listed among the other compiler switches. maybe this is due to mscoff support still considering 'experimental'? signature.asc Description: PGP signature
Re: D 2.066 is out. Enjoy!
On Mon, 18 Aug 2014 22:01:24 + bachmeier via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: What's the advantage of this over maintaing packages for the RC version until it's ready? 'cause not releasing periodically means ah, it will never be ready! let's look at another language, D is not worth using yet. signature.asc Description: PGP signature
Re: D 2.066 is out. Enjoy!
On Mon, 18 Aug 2014 22:48:00 + Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I don't see how infrequent, stable releases are more likely to provoke that reaction than frequent, unstable releases. stability is something that cannot be achieved in living language. and having official releases with new features is important to show that project is alive and mature. i myself using dmd-git-head and heavily ;-) patched gdc, but when i tried to convince my co-workers to use D, they looked at the page with releases first. not feature list or some comparisons. neither to buglist. as this is relatively young language, it must have frequent releases with bugfixes and new features! they tolerate some regressions in some releases, but they want to see that releases. don't ask me why they thinking like this. i don't know. but it's the fact. signature.asc Description: PGP signature
Re: D 2.066 is out. Enjoy!
On Mon, 18 Aug 2014 20:22:08 -0400 Nick Sabalausky via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Well, people will invent *any* excuse to pass over anything they don't feel like bothering with. It sounds like that's probably what they were doing. not exactly, 'cause they *are* interested in using D, especially after i demonstrated some 'D power' and pointed 'em to the excellent Ali's book. signature.asc Description: PGP signature
Re: D 2.066 is out. Enjoy!
On Tue, 19 Aug 2014 05:24:54 + Suliman via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Who could help with translation change logs to russian and publication it's on LOR? DYI. signature.asc Description: PGP signature
Re: D 2.066 is out. Enjoy!
On Tue, 19 Aug 2014 05:24:54 + Suliman via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Who could help with translation change logs to russian and publication it's on LOR? sorry, i mean DIY. ;-) signature.asc Description: PGP signature
Re: D 2.066 is out. Enjoy!
On Tue, 19 Aug 2014 15:27:34 -0700 Andrei Alexandrescu via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I think it would be great to motivate the change properly. -- Andrei aren't it motivated enough in PR? this will allow to build real package hierarchies instead of dumping everything in one flat package. my.package, my.package.internal, my.package.network, my.package.utils, etc. it's very convient and fits good in package system. we'll have modules, packages and package hierarchies, and everyone will be free to choose what he needs. modules for tiny projects, packages for small libraries, package hierarchies for big libraries (like phobos). signature.asc Description: PGP signature
Re: D 2.066 is out. Enjoy!
On Wed, 20 Aug 2014 10:41:29 +0900 Andrew Edwards via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: btw. http://wiki.dlang.org/Beta_Testing contains bug #10928 as blocker, but it's marked as RESOLVED FIXED in bugzilla. and bug #12696 needs to be rechecked, as it seems to be fixed too. signature.asc Description: PGP signature
Re: Fix #2529: explicit protection package #3651
On Wed, 20 Aug 2014 07:25:43 + Kagamin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: but it requires to dump all 'subpackages' into one flat directory and with ugly names. proposed extension will not break any existing code, yet will allow much nicer hierarchy. signature.asc Description: PGP signature
Re: D 2.066 is out. Enjoy!
On Wed, 20 Aug 2014 09:19:37 + Kagamin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Can't it be addressed by publishing release schedule, like llvm does it, to indicate the work is going on? hm. sounds reasonable. ;-) signature.asc Description: PGP signature
Re: D 2.066 is out. Enjoy!
On Wed, 20 Aug 2014 09:15:53 + disapointed user via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: support for windows that really sucks. that is 'cause windows really sucks. good luck in the future for all you guys you too. signature.asc Description: PGP signature
Re: Fix #2529: explicit protection package #3651
On Wed, 20 Aug 2014 09:26:36 + Kagamin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Huh? If std.datetime and std.regex are subpackages of `std` package, it usually means, they should reside in `std` directory, no? And how explicit package protection can change that? imagine mybiglib, mybiglib.internal, mybiglib.other, and each of them not single module, but package itself. so we have module mybiglib.other.thingy which wants to use functions from module mybiglib.internal.wisdom, which is part of mybiglib.internal package. signature.asc Description: PGP signature
Re: Fix #2529: explicit protection package #3651
On Wed, 20 Aug 2014 14:33:52 + Kagamin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Do we need a hierarchy of internals, is the problem this big? Why mybiglib.wisdom is not good? ah, why we need such things as subdirectories at all? CP/M was fine without concept of subdirectories! signature.asc Description: PGP signature
Re: D 2.066 is out. Enjoy!
On Wed, 20 Aug 2014 10:18:09 -0700 Andrei Alexandrescu via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: What is it that we could help with? -- Andrei he's drama queen, he doesn't need any help, only attention. signature.asc Description: PGP signature
Re: D 2.066 is out. Enjoy!
On Wed, 20 Aug 2014 22:00:57 + eles via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I don't like Go (syntax, mainly). The sole contender in the C++-like family, for systems programming, would be Vala, but since they dropped the posix profile... :( language without CTFE is soo unpleasant to use after D. i'm programmed in various lisps and schemes and was very glad to find the C-like language with metaprogramming abilities. and I WANT AST MACROS! ;-) no, i don't want to write code to *support* AST macros, i want to write code that *uses* AST macros. ;-) signature.asc Description: PGP signature
Re: Fix #2529: explicit protection package #3651
On Wed, 20 Aug 2014 10:19:59 -0700 Andrei Alexandrescu via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: No need to demean the question. It is valid. -- Andrei sorry, i don't mean to insult anyone, just trying to make people see analogies. hierarchies are everywhere, it's convient way to store alot of things. modules itself is a great example of hierarchies -- we can dump all source code in one file instead of using modules. i.e. file system hierarchy is handy what there are many files. module hierarchy is handy when there are many modules in library. the ability to have fine-grained visibility control in module hierarchy is handy. this was written numerous times in this thread, yet he continues to ask the same question again and again as if he just don't bother to read any answers. that's why i asked about subdirs. signature.asc Description: PGP signature
Re: D for the Win
On Wed, 20 Aug 2014 22:02:31 + anonymous via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: From a German author that would be an embracement of fascism. i always wonder how good people at finding various offences and fascims everywhere. i bet that such people are glad to censor Hašek's The Good Soldier Švejk, 'cause Hašek makes fun of the great human tragedy: the war! signature.asc Description: PGP signature
Re: D for the Win
On Thu, 21 Aug 2014 00:57:27 +0200 Paulo Pinto via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Specially the younger generations, they just use it because it sounds cool. and fun. they don't fear that old dead dog anymore, they making fun of it. signature.asc Description: PGP signature
Re: D for the Win
On Thu, 21 Aug 2014 04:31:31 -0400 Nick Sabalausky via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Yea, this *statement* really made me go o_O link[$.rel = foobar, $.type = text/css]; That's a lot of syntax abuse there! but it's fun! we all used to think that $ should mean 'length' and he has no such mind frames. i like it. ;-) signature.asc Description: PGP signature
Re: D for the Win
On Thu, 21 Aug 2014 08:37:30 + Ola Fosheim Gr via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Now the comma-operator has to stay because removing it is a severe breaking change. but we can abuse opIndex and/or opSlice too! ;-) signature.asc Description: PGP signature
Re: D for the Win
On Thu, 21 Aug 2014 11:48:32 + anonymous via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: It's pretty much the Nazi anthem. oh, really? let's see. current German anthem: Einigkeit und Recht und Freiheit für das deutsche Vaterland! Danach lasst uns alle streben brüderlich mit Herz und Hand! and so on. pretty innocent, right? ok, but this is only the 3rd verse of the song which begins with... oh, Deutschland, Deutschland über alles. may i assume that all Germans are well-disgiused Nazis then? here is the full song, for your pleasure: Deutschland, Deutschland über alles, über alles in der Welt, wenn es stets zu Schutz und Trutze brüderlich zusammenhält. Von der Maas bis an die Memel, von der Etsch bis an den Belt, Deutschland, Deutschland über alles, über alles in der Welt! Deutsche Frauen, deutsche Treue, deutscher Wein und deutscher Sang sollen in der Welt behalten ihren alten schönen Klang, uns zu edler Tat begeistern unser ganzes Leben lang. — Deutsche Frauen, deutsche Treue, deutscher Wein und deutscher Sang! and now, German anthem! and the 3rd verse: Einigkeit und Recht und Freiheit für das deutsche Vaterland! Danach lasst uns alle streben brüderlich mit Herz und Hand! Einigkeit und Recht und Freiheit sind des Glückes Unterpfand; blüh im Glanze dieses Glückes, blühe, deutsches Vaterland. And don't tell me that Germans carelessly throwing around Nazi slogans isn't something to feel uneasy about. they not only throwing, they still using part of that song as their anthem. besides, aren't your words racist? signature.asc Description: PGP signature
Re: D for the Win
On Thu, 21 Aug 2014 12:08:05 + Dicebot via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Please, this is not important enough to argue here. ah, excuse me. it's so easy to drag me into such talks... mea culpa. signature.asc Description: PGP signature
Re: Fix #2529: explicit protection package #3651
On Fri, 22 Aug 2014 20:48:22 + bearophile via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: or (smart plan!) just apply the necessary PRs, build dmd from sources and start using the features. if authors of popular libraries will do this, there will be no choice and maintainers will be forced to apply this patches. this is called 'driven by the community'. ;-) ok-ok-ok, you got me, this was a silly joke! or maybe not?.. signature.asc Description: PGP signature
Re: Fix #2529: explicit protection package #3651
On Sat, 23 Aug 2014 04:50:36 +0300 ketmar via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: to be honest, i myself is a happy user of Kenji's $ patch and package(...) patch. yes, it costs some efforts to keep 'em up-to-date, but hey, i have no life anyway. signature.asc Description: PGP signature
Re: Fix #2529: explicit protection package #3651
On Sun, 24 Aug 2014 02:39:39 + Dicebot via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: It is the same reasoning as with deep filesystem hierarchies and, well, any data hierarchies i already told that, but without any effects. signature.asc Description: PGP signature
Re: D for the Win
On Sun, 24 Aug 2014 12:51:10 + Mike via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: ps. 6. This change (https://github.com/nsf/pnoise/commit/baadfe20c7ae6aa900cb0e4188aa9d20bea95918) with GDC has no effect at all. signature.asc Description: PGP signature
Re: D for the Win
On Sun, 24 Aug 2014 13:44:07 + Mike via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: hm. for my GDC 4.9.1. git HEAD #6 has no effect at all. p.s. it's unfair to specify -msse3 -mfpmath=sse for gcc and not for gdc. gdc can use this flags too! (yeah, the effect is great: sse3 variant is ~2.5 times faster). signature.asc Description: PGP signature
Re: D for the Win
On Sun, 24 Aug 2014 13:44:07 + Mike via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: p.s. what i did is this: auto tm = Timer(); tm.start; foreach (; 0..100) { auto n2d = Noise2DContext(0); foreach (i; 0..100) { foreach (y; 0..256) { foreach (x; 0..256) { auto v = n2d.get(x * 0.1f, y * 0.1f) * 0.5f + 0.5f; pixels[y*256+x] = v; } } } } tm.stop; writeln(tm.toString); Timer is my simple timer class which uses MonoTime to measure intervals. this shows ~22 seconds for both variants, with #6 and without #6. and 57 seconds for variants without sse3 flags. ;-) signature.asc Description: PGP signature
Re: D for the Win
On Sun, 24 Aug 2014 16:16:43 +0100 Iain Buclaw via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: That's because floor isn't an intrinsic. The crippling speed issue was the fact that floor computed and returned at real precision. i'm testing on x86, and the difference between 'call floorf' and inlining is significant. gcc inlines floorf() call, and gdc does not. i don't know anything about x86_64 though. signature.asc Description: PGP signature
Re: Fix #2529: explicit protection package #3651
On Tue, 26 Aug 2014 16:46:19 + Dicebot via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: ..and it has just been merged! ^_^ WOW! that's great! Thanks Walter! second that! signature.asc Description: PGP signature
Re: Programming in D book, User Defined Attributes (UDA) chapter
On Tue, 26 Aug 2014 23:16:14 -0700 Ali Çehreli via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: * The 'User Defined Attributes (UDA)' chapter great! * static this, static ~this, shared static this, and shared static ~this and this too. signature.asc Description: PGP signature
Re: Programming in D book, User Defined Attributes (UDA) chapter
On Tue, 26 Aug 2014 23:16:14 -0700 Ali Çehreli via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: * Formatted element output with %( and %) by the way, i never knows about this feature. maybe i should RTFM someday... signature.asc Description: PGP signature
Re: Blog post on hidden treasure in the D standard library.
On Thu, 28 Aug 2014 16:18:42 + safety0ff via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: What do you have against capitalizing 'I' ? don't even noticed that until your post. but maybe that is 'cause i'm not using capitals at all... ;-) signature.asc Description: PGP signature
Re: Blog post on hidden treasure in the D standard library.
On Fri, 29 Aug 2014 14:17:53 + krzaq via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: If you're writing in a language, try to appear literate. but what if i can't, for example? i can read (and understand without dictionary, and with jokes too) books of Pratchett, Carrol, Adams, even Tolkien with his ye olde English, but i absolutely can't build correct English sentence by myself. signature.asc Description: PGP signature
Re: Blog post on hidden treasure in the D standard library.
On Fri, 29 Aug 2014 17:13:23 + krzaq via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Negligence to do so is, to me, either extreme laziness or lack of respect to the reader. neither, in fact. i believe that those rules are useless and senseless now, so it's more like a one man crusade. i know that virtually nobody will join me in my fight, but it's not enough to stop me. ;-) signature.asc Description: PGP signature
Re: Blog post on hidden treasure in the D standard library.
On Sat, 30 Aug 2014 07:55:36 + safety0ff via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: It also appears unprofessional and uneducated. so i am. signature.asc Description: PGP signature
Re: Daemonize v0.1 - simple way to create cross-platform daemons
On Sun, 31 Aug 2014 11:27:41 + NCrashed via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: looks very interesting, thank you. signature.asc Description: PGP signature
Re: 438-byte Hello, world Win32 EXE in D
On Wed, 10 Sep 2014 16:02:01 +0200 Marco Leise via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: The final executable size was 15 bytes. g The customer loved it. and they never knows that it took at least 512 bytes anyway. or even more, depending of claster size. heh. signature.asc Description: PGP signature
Re: Programming in D book, User Defined Attributes (UDA) chapter
On Thu, 11 Sep 2014 11:48:26 -0700 Ali Çehreli via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Would you like to send me your name so that I add it to the Acknowledgments section. (Otherwise ketmar is it. :) Ketmar, or Ketmar Dark if you want full name. ;-) signature.asc Description: PGP signature
Re: Multiple alias this is coming.
On Thu, 18 Sep 2014 15:20:04 -0700 Ali Çehreli via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: [1] http://ddili.org/ders/d.en/alias_this.html heh, i just wanted to point at your book. ;-) signature.asc Description: PGP signature
Re: Digger 1.0
On Mon, 22 Sep 2014 15:24:55 +0200 simendsjo via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: My guess is the average for developers is ~8GB. 2GB RAM is really not enough for pretty much anything these days - the browser alone easily chews 3-4GB on moderate use. I recommend you just upgrade your computer (or compile on a better iron). are your primary language is java? i'm asking just out of curiousity. signature.asc Description: PGP signature
Re: [OT] Memory usage and Web (WAS: Re: Digger 1.0)
On Tue, 23 Sep 2014 18:29:17 +0200 simendsjo via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: But if your parents want Facebook and Instagram, you better give them a pretty beefy computer. i'll give 'em opera 12. yes, it's dead, but it's the only browser that can work month by month without restarting (no, i'm not kidding!) and feel itself good in ~300-400 MB of RAM. no FOSS bloatware browser can compete (alas). signature.asc Description: PGP signature
native ZMBV video codec
Hello. last night i ported ZMBV video codec to D. ZMBV is videocodec invented by DosBox team to record old videogames' gameplay. if you are into writing old-school games, it can be handy to embed the possibility to creating gameplay video directly in your game. it's only codec for now (i.e. it can't write .avi files, only encoding and decoding raw frame data). it's a port of GPLv3 code, so it is GPLv3 too, sorry. documentation is non-existent for now, but i'm planning to add some samples along with .avi writer. codec is using libc malloc()/realloc()/free() for it's internal data (and tries not to allocate things very often). yet it throws alot of exceptions on invalid input or output, so beware. sorry for shitty code, it's a port of a port of a port, and it was made in a hurry. here is the source: http://repo.or.cz/w/iv.d.git/blob_plain/HEAD:/zmbv.d p.s. don't bother to pull other modules from the repo: they either not finished/polished or not written in 'standard D' anyway. signature.asc Description: PGP signature
Re: D2 port of Sociomantic CDGC available for early experiments
On Mon, 06 Oct 2014 16:51:06 + Dicebot via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: https://github.com/D-Programming-Language/druntime/pull/985 Here is initial port result available for early experiments. It can be compiled with make -f posix.mak GC_TYPE=concurrent and passes the test suite with only shared library tests disabled (ef20b7a). wow, going to try it NOW! ;-) signature.asc Description: PGP signature
Re: D2 port of Sociomantic CDGC available for early experiments
On Tue, 07 Oct 2014 17:18:18 -0700 Walter Bright via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: That's a good idea, but I hate environment variables affecting all D executables. They always wind up being inadvertently being left on, or off, or set for some unrelated purpose. It also would affect all D executables on the system, potentially making a big mess. maybe enable envvar-control in alphas/betas and disable in releases? this way people who want to try something new can experiment, but those who need stability will not be affected. after all, those who using alphas/betas knows what they're doing and are aware of possible problems. i assume that not everyone are ready to build dmd from sources, yet many people are ready to try new features, so they can download and install separate alpha/beta to play with. signature.asc Description: PGP signature
Re: D2 port of Sociomantic CDGC available for early experiments
On Wed, 08 Oct 2014 07:14:29 + Paolo Invernizzi via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: i assume that not everyone are ready to build dmd from sources, Digger? What can be easier? i've never used Digger, so i can't tell anything about it. ;-) signature.asc Description: PGP signature
Re: D2 port of Sociomantic CDGC available for early experiments
On Wed, 08 Oct 2014 07:14:29 + Paolo Invernizzi via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: i assume that not everyone are ready to build dmd from sources, Digger? What can be easier? p.s. i mean that it will be good to have Digger mentioned somewhere at the front page, with some usage samples, so people will know that we have such good tool. signature.asc Description: PGP signature
Re: D2 port of Sociomantic CDGC available for early experiments
On Wed, 8 Oct 2014 20:47:09 +0300 ketmar via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: p.s. i believe that there shouldn't be any flags that turns off range checking. if someone wants to do it fast, he can use pointer arithmetics (this is exactly the same as using arrays with range checks off). that's what i'm doing in my code: writing everything using arrays, which are range-checked. then profiling and rewriting bottlenecks using pointer arithmetics. and i found that i rarely ever need to go pointers, 'cause optimizing algorithms has much bigger impact on performance. signature.asc Description: PGP signature
Re: D2 port of Sociomantic CDGC available for early experiments
On Thu, 16 Oct 2014 08:10:38 + Dylan Knutson via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I'm sure there's a cross platform way to retrieve them without bring passed them directly there isn't. signature.asc Description: PGP signature
Re: D2 port of Sociomantic CDGC available for early experiments
On Thu, 16 Oct 2014 13:54:25 + Sean Kelly via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I'm sure there's a cross platform way to retrieve them without bring passed them directly there isn't. Runtime.args? it's good, but it isn't modifiable. so programmer must manually ignore gc-related args. yet yes, i was wrong. there is a way to acces CLI args. but there is no documented way to modify 'em. signature.asc Description: PGP signature
Re: D2 port of Sociomantic CDGC available for early experiments
On Thu, 23 Oct 2014 07:12:25 + Kagamin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Friday, 17 October 2014 at 17:53:18 UTC, Andrej Mitrovic via Digitalmars-d-announce wrote: I've come to even hate anything GUI (except maybe the editor), I'd hate to even think about browsing the file system with a mouse anymore. Yes, you can: Windows Explorer does support keyboard input :) at least it supports most useful shortcut: alt+f4. signature.asc Description: PGP signature
Re: dfix 0.1.1
On Tue, 28 Oct 2014 01:29:30 + Brian Schott via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: No. Really. I'm serious. https://github.com/Hackerpilot/dfix dfix is a tool for automatically upgrading older D syntax to the newer style. * Updates old-style alias syntax to new-style * Fixes implicit concatenation of string literals * Automatic conversion of C-style array declarations and parameters to D-style. * Upgrades code to comply with DIP64 if the --dip64 switch is specified. (You probably don't want to use this) * Upgrades code to comply with DIP65 unless the --dip65=false switch is specified. great! haven't tried it yet, but it's great that we now have such tool. signature.asc Description: PGP signature
Re: D is for Data Science
On Mon, 24 Nov 2014 17:10:25 -0800 Walter Bright via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I know it's a tough call. But I do see these sorts of comments regularly, and it is a fact that there are too many D libraries gone to seed that won't compile anymore, and that makes us look bad. but D wins in overall. being one of the architects in my bussiness i was eagerly pushing D as our main development language. it's good that this thing (and some other too) happens before i succeeded. now we keep going with C++, as it fscks safety too, fscks principle of least astonishment, almost never fixes inconsistencies, but it has alot more libraries and i can hire alot more programmers with it. i'm still using D as a language for my hobbyst throw-away projects though, and D is great for such things. D wins, 'cause i *almost* stopped ranting (not only in this NG) and just accepting it as is. well, almost as is, i'm applying alot of patches over vanilla D. this, of course, makes my code incompatible with every other D compiler out here, but luckily this is not a concern anymore. signature.asc Description: PGP signature
Re: dfix 0.2.0
On Mon, 24 Nov 2014 19:22:51 + Brian Schott via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: dfix is a tool for automatically upgrading the syntax of D source code. Changes since 0.1.1: * #1 dfix will now rewrite const int foo() {} to int foo() const {} * #6 The C-style array syntax fix is no longer incorrectly applied to certain ASM statements. * #9 You can now provide directory names as arguments to dfix in case you're too lazy to run find and xargs. (And really, who isn't?) * #11 dfix is now registered on code.dlang.org. http://code.dlang.org/packages/dfix * Added tests. can it detect top-level @properties and @properties with args? this would be very valuable addition for property enforcing patch. std.file, for example, declared top-level `isFile()`, `isDir()` and some other functions as @properties, which is meaningless, as we have UFCS. and this breaks with Kenji's PR 2305, for example. signature.asc Description: PGP signature
Re: undeaD - zombie phobos modules back from the grave
On Mon, 01 Dec 2014 12:33:29 + Martin Nowak via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Monday, 1 December 2014 at 07:53:05 UTC, Walter Bright wrote: Well, I had tagged 1.0.0, then fixed a problem :-) Well 1.0.0 is reserved for the first stable release, usually you'd begin with 0.1.0 or so. in FOSS world stable release is the release which developers declared stable, not some kind of 1.0. ;-) signature.asc Description: PGP signature
Re: forum.dlang.org is now using DCaptcha
On Wed, 03 Dec 2014 01:48:55 + krzaq via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Sure, this will eliminate spammers. But I wonder what the word of mouth will be: A Have you tried asking on the D forum? B Yeah, but they thought I was a spammer and wouldn't let me post. A Oh, well, maybe try to do it in python. ah, the perfect filter! signature.asc Description: PGP signature
Re: forum.dlang.org is now using DCaptcha
On Wed, 03 Dec 2014 14:47:09 +0100 Jacob Carlborg via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 2014-12-03 14:02, Martin Krejcirik wrote: Asking for D feature names in not good IMHO. I agree. I try the demo at got a question about what this feature is called: auto u = new class M {}; Exactly what is referred to here? The type inference or the anonymous class? The answer is anonymous class. besides, it's not anonymous, it has a name! signature.asc Description: PGP signature
Re: dsource.org moved
On Wed, 03 Dec 2014 09:13:12 + Dejan Lekic via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I think DSource should not be shut down, but instead modernised and open for new D-based projects. We, old D programmers, just love DSource! :) the problem with current dsource is that keeps poping up in first google results. yesterday my mate asked me why we don't have gtk+ bindings for D. i answered just google gtkD, he did it and the first result was dsource link, which points just to svn repo, w/o docs and such. this is disaster. signature.asc Description: PGP signature
Re: forum.dlang.org is now using DCaptcha
On Wed, 03 Dec 2014 20:22:31 + Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Wednesday, 3 December 2014 at 20:19:34 UTC, ketmar via Digitalmars-d-announce wrote: On Wed, 03 Dec 2014 14:47:09 +0100 Jacob Carlborg via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 2014-12-03 14:02, Martin Krejcirik wrote: Asking for D feature names in not good IMHO. I agree. I try the demo at got a question about what this feature is called: auto u = new class M {}; Exactly what is referred to here? The type inference or the anonymous class? The answer is anonymous class. besides, it's not anonymous, it has a name! The type is anonymous. so what that M after `class` means then? anonymous with a name, that's cool! ;-) signature.asc Description: PGP signature
Re: dsource.org moved
On Wed, 03 Dec 2014 20:42:27 + Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Wednesday, 3 December 2014 at 20:24:05 UTC, ketmar via Digitalmars-d-announce wrote: On Wed, 03 Dec 2014 09:13:12 + Dejan Lekic via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I think DSource should not be shut down, but instead modernised and open for new D-based projects. We, old D programmers, just love DSource! :) the problem with current dsource is that keeps poping up in first google results. yesterday my mate asked me why we don't have gtk+ bindings for D. i answered just google gtkD, he did it and the first result was dsource link, which points just to svn repo, w/o docs and such. this is disaster. Erm, that was due to a misconfiguration from a last-minute change. Sorry. Fixed now. thank you. but i mean that dsource.org is still poping up in results and it contains alot of obsolete projects. some projects was forked long time ago and their dsource pages weren't updated, some are just dead. people keep hitting dsource, trying projects and leaving with a great frustration: ah, nothing is working, what a mess! besides, all that projects seems dead, so seems D. i think that the whole dsource site must be shut down and replaced with a stub (except planetD) to stop this disease. that site was great, but now it does more harm than good. signature.asc Description: PGP signature
Re: dsource.org moved
On Wed, 03 Dec 2014 20:42:27 + Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Wednesday, 3 December 2014 at 20:24:05 UTC, ketmar via Digitalmars-d-announce wrote: On Wed, 03 Dec 2014 09:13:12 + Dejan Lekic via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I think DSource should not be shut down, but instead modernised and open for new D-based projects. We, old D programmers, just love DSource! :) the problem with current dsource is that keeps poping up in first google results. yesterday my mate asked me why we don't have gtk+ bindings for D. i answered just google gtkD, he did it and the first result was dsource link, which points just to svn repo, w/o docs and such. this is disaster. Erm, that was due to a misconfiguration from a last-minute change. Sorry. Fixed now. ah, there is another post in D.learn, where guy tries to find python-d and hit dsource instead of bitbucket. kill that dsource monster, please! it hurts the whole community and it hurts newcomers alot! signature.asc Description: PGP signature
Re: dsource.org moved
On Wed, 03 Dec 2014 23:26:41 + Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: The existing search result ratings for DSource are because of all the existing links to it, and not so much because of the content on DSource. that's why it should be replaced with stub. google ranking algos knows about sites without content and will lower such sites even if they are linked from alot of other sites. btw, stub can contain email which authors of the hosted projects can use to get their sources if necessary. but i doubt that anyone will use it. signature.asc Description: PGP signature
Re: forum.dlang.org is now using DCaptcha
On Thu, 04 Dec 2014 04:02:46 + Mike via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I had to maintain a technical forum last year that was getting spammed like crazy. I added the question how many bits are in a byte? six. am i failed? signature.asc Description: PGP signature
Re: forum.dlang.org is now using DCaptcha
On Thu, 04 Dec 2014 20:31:47 +1300 Rikki Cattermole via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On 4/12/2014 8:13 p.m., ketmar via Digitalmars-d-announce wrote: On Thu, 04 Dec 2014 04:02:46 + Mike via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I had to maintain a technical forum last year that was getting spammed like crazy. I added the question how many bits are in a byte? six. am i failed? Google is your friend. why not Knuth? Knuth is my friend, and MIX byte is of 6 bits. signature.asc Description: PGP signature
protractor glyph recognizer
Hello. here i presenting to you simple, but working ProTractor[1] glyph recognizer. it is a successor of $1 gesture recognizer[2]. it's reasonably reliable and fast. http://repo.or.cz/w/iv.d.git/blob_plain/HEAD:/geng.d i don't think that you really need any documentation for it, as everything is very simple. the only thing you have to remember is that you'd better keep all template glyphs normalized. here is some quickhack sample using my other IV modules: http://repo.or.cz/w/iv.d.git/tree/HEAD:/protractor_test i included simple glyph reader and writer, so you can easily store and load your glyph libraries. [1] http://yangl.org/pdf/protractor-chi2010.pdf [2] http://depts.washington.edu/aimgroup/proj/dollar/ signature.asc Description: PGP signature
Re: 2D game engine written in D is in progress
On Fri, 19 Dec 2014 07:22:13 + Joakim via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: This is the model used by Android, the most successful open source project ever i can assure you that stupid policy with separating features has nothing to do with android popularity. signature.asc Description: PGP signature
Re: 2D game engine written in D is in progress
On Fri, 19 Dec 2014 14:46:33 + Joakim via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Friday, 19 December 2014 at 11:35:54 UTC, ketmar via Digitalmars-d-announce wrote: On Fri, 19 Dec 2014 07:22:13 + Joakim via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: This is the model used by Android, the most successful open source project ever i can assure you that stupid policy with separating features has nothing to do with android popularity. I can assure you that it's _the_ reason it took off so much. If the Android project had insisted on pure open source, the hardware and smartphone vendors would have laughed at them and used Windows Mobile or LiMo or one of the myriad other alternatives at the time. It's why Samsung has their own proprietary multi-window implementation for Android and Amazon and Xiaomi forked Android and released their own proprietary versions. Commercial vendors want to differentiate with their own proprietary features, but AOSP provides a common OSS platform on which they can work together. This model has been extraordinarily successful for AOSP, as it has led to a billion smartphones running some version of Android and capable of running most common apps, albeit with some fragmentation too. what you described here is a matter of licensing (BSDL vs GPL), not having some closed-source patches. signature.asc Description: PGP signature