Re: Mir GLAS v0.0.6: easy usage with DMD and LDC
On Friday, 16 December 2016 at 22:12:58 UTC, Ilya Yaroshenko wrote: Mir GLAS v0.0.6 was released. Very welcome. Will need to play around with it.
Quick-and-Dirty Xiph Tremor decoder port
here[1] is $subj. it is as close to the original C source as possible. it also includes partial vorbisfile port, so it is completely self-contained and doesn't require any C library besides libc. there is also sample ALSA player[2]. it requires ALSA bindins[3]. grab it now while it's hot, 'cause i will probably mutilate it later. so if you want almost 1:1 C port... hurry up! the time is short! p.s.: it compiles for x86_64 arch, but i didn't tested if it really works with 64 bits. p.p.s.: why? because i can. and no, i won't port Opus decoder. at least not for free. ;-) [1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/xogg/tremor.d [2] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/xogg/trest.d [3] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/alsa.d
Re: concepts v0.0.1
On Friday, 16 December 2016 at 23:49:18 UTC, Nicholas Wilson wrote: On Friday, 16 December 2016 at 20:51:19 UTC, Atila Neves wrote: @models!(Foo, isFoo) What happened to the __UDA_ATTACHMENT__ proposal? Also are UDAs legal after the symbol? i.e. with __UDA_ATTACHMENT__ could you do struct Foo @models!isFoo { void foo(); } ?
Re: concepts v0.0.1
On Friday, 16 December 2016 at 20:51:19 UTC, Atila Neves wrote: @models!(Foo, isFoo) What happened to the __UDA_ATTACHMENT__ proposal?
Re: concepts v0.0.1
On Friday, 16 December 2016 at 20:51:19 UTC, Atila Neves wrote: Atila Surprisingly little code. Thx.
Mir GLAS v0.0.6: easy usage with DMD and LDC
Mir GLAS v0.0.6 was released. Changes: 1. GLAS can be used as common dub package with DMD and LDC. No manual library installation is required. Thanks to John Colvin for the good advice! from the README GLAS can be used with DMD and LDC but LDC (LLVM D Compiler) >= 1.1.0 beta 6 should be installed in common path anyway. GLAS can be included automatically in a project using dub (the D package manager). DUB will build GLAS and CPUID manually with LDC. { ... "dependencies": { "mir-glas": "~>", "mir-cpuid": "~>" }, "lflags": ["-L$MIR_GLAS_PACKAGE_DIR", "-L$MIR_CPUID_PACKAGE_DIR"] } $MIR_GLAS_PACKAGE_DIR and $MIR_CPUID_PACKAGE_DIR will be replaced automatically by DUB to appropriate directories. - 2. GLAS implementation was simplified. 3. Cache blocking was improved. 4. LDC >= 1.1.0 beta 6 is supported and required. ndslice implementation will be completely reworked next year. In the same time GLAS API will be the same. Thanks, Ilya
Re: test_allocator v0.0.1 - don't leak memory in your std.experimental.allocator using code
On Friday, 16 December 2016 at 21:03:11 UTC, Atila Neves wrote: So you decide to use std.experimental.allocator for your memory allocations. Let's say you're as paranoid as me about getting the allocations right. How do you know you're not leaking memory now (no GC safety net)?. Or worse, deallocating memory you shouldn't? The program didn't crash, but you never do know... Enter the test allocator here: http://code.dlang.org/packages/test_allocator Run your code through that little guy in a unittest build and worry no more. It throws an AssertError in the destructor if there's a memory leak and also if you try and deallocate memory that it doesn't know about. It's backed by Mallocator because then you can also use valgrind or address sanitizer to catch even more bugs. Atila Just for those who don't know it yet, Druntime always leaks 88 bytes: https://github.com/dlang/druntime/pull/1557
test_allocator v0.0.1 - don't leak memory in your std.experimental.allocator using code
So you decide to use std.experimental.allocator for your memory allocations. Let's say you're as paranoid as me about getting the allocations right. How do you know you're not leaking memory now (no GC safety net)?. Or worse, deallocating memory you shouldn't? The program didn't crash, but you never do know... Enter the test allocator here: http://code.dlang.org/packages/test_allocator Run your code through that little guy in a unittest build and worry no more. It throws an AssertError in the destructor if there's a memory leak and also if you try and deallocate memory that it doesn't know about. It's backed by Mallocator because then you can also use valgrind or address sanitizer to catch even more bugs. Atila
concepts v0.0.1
Since my phobos PR for better static assertions was clearly never getting merged (https://github.com/dlang/phobos/pull/3677), I moved the code to dub instead: http://code.dlang.org/packages/concepts Basically, as long as you pair up your template constraints (e.g. isFoo) with a suitably named function that should compile (e.g. checkFoo, not a lambda), then you can write this: @models!(Foo, isFoo) struct Foo { //... } And in the case that isFoo is false, you'll get to know _why_ it didn't compile instead of an AssertError that leaves you confused. At least it used to and the unit tests pass so I'm assuming it still does :P Atila
Re: unDE 0.1.0: original file manager, image and text viewer
On Friday, 16 December 2016 at 19:03:29 UTC, MGW wrote: Очень интересная работа. Взглянул на некоторые проблемы с другой стороны. Интересно, это реализовано на D? I'm translating: "Very interesting work. I looked on some problems with other hand. Interesting, is it implemented on D?" Отвечаю: Дык, там же все исходники! Translation of answer: "There is all sources!!!"
Re: unDE 0.1.0: original file manager, image and text viewer
On Thursday, 15 December 2016 at 20:16:10 UTC, unDEFER wrote: Hello, my dear friends! So many days you answers on many my questions. And today I glad to present my work: unDE 0.1.0. It is very original file manager, image and text viewer. More information: http://unde.sourceforge.net/en/ch24.html Video with English subtitles: https://youtu.be/29zuxU9eyXo Очень интересная работа. Взглянул на некоторые проблемы с другой стороны. Интересно, это реализовано на D?
Re: unDE 0.1.0: original file manager, image and text viewer
On Friday, 16 December 2016 at 14:51:53 UTC, John Colvin wrote: This looks like a very interesting project. I have had similar ideas recently but haven't had time to do anything. I'm looking forward to seeing what you create. Thank you!
Re: unDE 0.1.0: original file manager, image and text viewer
On Thursday, 15 December 2016 at 20:16:10 UTC, unDEFER wrote: Hello, my dear friends! So many days you answers on many my questions. And today I glad to present my work: unDE 0.1.0. It is very original file manager, image and text viewer. More information: http://unde.sourceforge.net/en/ch24.html Video with English subtitles: https://youtu.be/29zuxU9eyXo This looks like a very interesting project. I have had similar ideas recently but haven't had time to do anything. I'm looking forward to seeing what you create.