On Tuesday, 14 May 2024 at 12:36:27 UTC, ryuukk_ wrote:
- float nan default
Complaints from C and C++ programmers could mention that at least
stack variables gets initialized to something.
New in console-colors v1.3.1:
- Possibility to enable UTF-8 codepage in Windows terminal: call
`enableConsoleUTF8()` at start-up.
- Use VT100 escaped codes when supported in Windows (some Windows
10+and later). It's a bit faster.
- Bold text with `text`, `text` or
`.in_bold()` call (VT-100
On Thursday, 18 January 2024 at 07:19:19 UTC, Mike Parker wrote:
And by "quality" I'm not referring to the quality of the DIP's
language. In the new process, the focus will be entirely on the
details of the proposal and not on the language in which
they're presented. I'm happy to clean that
On Tuesday, 2 January 2024 at 10:30:52 UTC, Sergey wrote:
On Saturday, 30 December 2023 at 15:17:36 UTC, Luna wrote:
NuMem 0.5.4 has been released, numem is a new library
Any meaningful comparison with another similar library will be
highly appreciated
On Wednesday, 3 January 2024 at 01:25:29 UTC, Walter Bright wrote:
Along with my best wishes for a happy and prosperous 2024 to
all the DLF community members, and their families and friends.
Thanks!
On Saturday, 30 December 2023 at 16:36:38 UTC, ryuukk_ wrote:
What D really is missing _right now_, and will hopefully get
_before_ phobosv3 is a good and minimalistic Allocator API, i
modeled mine around zig's, no RAII, just a simple struct with 3
function ptr
FWIW it's possible to do a
On Saturday, 30 December 2023 at 15:17:36 UTC, Luna wrote:
* C++ style smart pointers (unique_ptr, shared_ptr, weak_ptr)
* C++ style vector type (with support for moving unique_ptr's
in!)
Indeed with numem you can have a relatively "C++11" experience
with scoped ownership, which we intend
On Thursday, 21 December 2023 at 23:25:55 UTC, Renato wrote:
ld: symbol(s) not found for architecture x86_64
Make sure you're using the "osx-universal" package in order to
have both arch.
https://github.com/ldc-developers/ldc/releases/tag/v1.35.0
That said, for consumer software it may be a
On Thursday, 21 December 2023 at 18:06:51 UTC, Renato wrote:
Unless silly is completely broken, it seems like this is a
linker issue again.
Hello, why not use ldc instead of dmd for macOS?
sudo ln -f -s /path/to/ldc/compiler/bin/ldc2 /usr/local/bin/ldc2
sudo ln -f -s
On Sunday, 10 December 2023 at 15:08:05 UTC, Bastiaan Veelo wrote:
We are looking forward to being able to safely use LDC, because
tests show that it has the potential to at least double the
performance.
Yes, and that's before you its excellent SIMD capabilities :)
On Wednesday, 22 November 2023 at 21:35:34 UTC, WebFreak001 wrote:
the revamped DUB documentation I started a while ago is now
deployed on https://dub.pm
Thanks for this!
On Tuesday, 14 November 2023 at 08:18:20 UTC, Mike Parker wrote:
* The default edition, meaning the code you have now, should
compile forever.
Should we want that?
I think I really don't like even the concept of Editions. The
reason for that it stems from an incorrect assumption about how
On Monday, 20 November 2023 at 23:56:36 UTC, Dmitry Ponyatov
wrote:
Or maybe someone advice me some set of books deeply targets for
learning of binary and symmetric parsing (such as binpac), DCG
in C or using generators in D, etc to let me write my own lib.
'Crafting Interpreters' book
On Tuesday, 14 November 2023 at 15:05:34 UTC, Steven
Schveighoffer wrote:
When considering how this should work, I would strongly suggest
it be the default to work with the current edition of the
language. Nobody wants to always have to attribute their module
(or whatever other opt-in
On Sunday, 12 November 2023 at 19:50:02 UTC, Mike Parker wrote:
https://gist.github.com/mdparker/f28c9ae64f096cd06db6b987318cc581
Thanks for the detailed summary, I'm reading them all!
On Friday, 3 November 2023 at 15:11:31 UTC, Bogdan wrote:
Can anyone help me to understand what I am missing?
Your loop is likely dominated by sin() calls, And the rest of the
loop isn't complicated enough to outperform the compiler.
What you could do is use the intrinsics to implement a
On Monday, 2 October 2023 at 19:04:19 UTC, MrSmith33 wrote:
On Thursday, 28 September 2023 at 23:28:02 UTC, Guillaume
Piolat wrote:
- manual push/pop
I wonder if `with` statement is helpful here to reduce verbosity
Do you mean with:
with(scopedContext())
{
set!int("myVar",
On Saturday, 30 September 2023 at 15:02:16 UTC, Max Samukha wrote:
When is it useful?
You can use it to troll Jonathan Blow.
OT: Apart from being marketed more like a game (streaming videos,
and similarly "finished" at launch?) I was striked that Jai has
already many... perlisms in the
On Friday, 29 September 2023 at 16:56:47 UTC, Imperatorn wrote:
Sounds a bit like dependency injection but for state
Possibly, I'm not familiar with dependency injection.
When is it useful?
On Friday, 29 September 2023 at 15:00:33 UTC, Imperatorn wrote:
I think for this to be truly valuable, it would require being
part of the language.
Only if proven on DUB.
I admit I haven't really thought about implicit parameters
before your post, so I might be missing something.
Think
On Friday, 29 September 2023 at 08:33:56 UTC, Imperatorn wrote:
Interesting, what are the benefits of using this instead of
global variables?
Thinking about this, it's more vs TLS variable. __gshared would
require synchronization.
Changing the theAllocator (a TLS variable) in
Hi,
Ever had a bit of feature-envy about Odin's "context" feature
[1]? It is something used to pass "contextual" parameters, like a
logger, an allocator, to callees. It is akin to Scala's "implicit
parameters", or Jai contexts [2].
So I went ahead and implement a proof-of-concept library
On Tuesday, 5 September 2023 at 22:45:28 UTC, raven09 wrote:
I *assume* that this has something to do with D's GC? But I
tried calling GC.disable() and nothing changed. Any help or
insight would be appreciated.
Thanks in advance
If you want to have a D DLL called from elsewhere, and don't
On Saturday, 26 August 2023 at 14:29:32 UTC, jmh530 wrote:
On Friday, 18 August 2023 at 13:40:54 UTC, drug007 wrote:
18.08.2023 01:32, Guillaume Piolat пишет:
[...]
Let me improve it a little bit (some form of procrastination)
[...]
Sorry, but what are you improving here?
Some people
The idea is to deliberately mark @system functions that need
special scrutiny to use, regardless of their memory-safety.
Function that would typically be named `assumeXXX`.
```d
class MyEncodedThing
{
Encoding encoding;
/// Unsafe cast of encoding.
void assumeEncoding (Encoding
On Saturday, 19 August 2023 at 19:23:38 UTC, Cecil Ward wrote:
I’m trying to write a cross-platform function that gives access
to the CPU’s prefetch instructions such as x86
prefetch0/1/2/prefetchnta and AAarch64 too. I’ve found that the
GDC and LDC compilers provide builtin magic functions
On Thursday, 17 August 2023 at 18:24:41 UTC, kinke wrote:
Glad to announce the second beta for LDC 1.34. Major change
since beta1: LLVM 16 support, incl. v16.0.6 for the prebuilt
packages.
Full release log and downloads:
https://github.com/ldc-developers/ldc/releases/tag/v1.34.0-beta2
On Sunday, 13 August 2023 at 16:10:32 UTC, ryuukk_ wrote:
Core API should subscribe to the premise: give memory
allocation control (and therefore dealocation) back to the user
I'm not sure about why RAII is an issue, but I fully agree with
your stance about a simpler allocator, and one we
On Monday, 24 July 2023 at 11:57:11 UTC, 4 wrote:
Could someone share a step by step way to compile and link a
x86-64 Linux Binary using Windows 10? (Without virtual machine
or "Linux Subsystem for Windows")
I want to compile and link a Hello World program for both Linux
and Windows.
On Monday, 24 July 2023 at 09:20:05 UTC, BoQsc wrote:
There are three compilers present in the Dlang website: DMD GDC
and LDC
DMD can build much faster than LDC. In some cases it is quite
extreme, for example the product I work on has a 3.6x faster
debug build time with DMD (well, only with
On Friday, 7 July 2023 at 13:01:53 UTC, Nick Treleaven wrote:
Possibly obsolete features could become deprecations before
they are actually removed.
It just seems to me, instead of complaining when features become
deprecated, people will complain when obsolete feature becomes
deprecated
On Friday, 7 July 2023 at 09:35:14 UTC, Paolo Invernizzi wrote:
I respectfully disagree, and prefer to keep going on with the
current deprecation and cleanup policy: Scott Meyers' DConf
2014 keynote all the way down.
+1
I've always agreed with the deprecation in the end, even complex
On Thursday, 29 June 2023 at 23:51:44 UTC, bachmeier wrote:
If you try it and have problems, you can [create a
discussion](https://github.com/bachmeil/betterr/discussions).
You can also post in this forum, but I won't guarantee I'll see
it.
Super cool, congrats!
On Sunday, 18 June 2023 at 05:01:16 UTC, Cecil Ward wrote:
On Sunday, 18 June 2023 at 04:54:08 UTC, Cecil Ward wrote:
Is it true that this doesn’t always work (in either branch)?
float4 a,b;
static if (__traits(compiles, a/b))
c = a / b;
else
c[] = a[] / b[];
It's because SIMD stuff
On Friday, 16 June 2023 at 15:56:30 UTC, Dmitry Olshansky wrote:
So I've got my hands on one of 'em MacPros. Great machine, nice
build quality.
Next order of business is to run D on the box, so I've
downloaded universal binaries off ldc's release page. When I
try to run any of the binaries
On Friday, 19 May 2023 at 18:31:45 UTC, Maximilian Naderer wrote:
Hello guys,
So what’s currently the best way to use a big C library?
Let’s assume something like
cglm
assimp
glfw
- Some big libraries are translated, for example
https://code.dlang.org/packages/glfw-d was created with both
On Friday, 12 May 2023 at 08:41:56 UTC, Ferhat Kurtulmuş wrote:
On Friday, 12 May 2023 at 07:40:54 UTC, Salih Dincer wrote:
On Friday, 28 April 2023 at 13:50:35 UTC, Ferhat Kurtulmuş
wrote:
Please give it a try and destroy me :)
I've been pushing myself to try DCV for about a week now. But
On Monday, 1 May 2023 at 17:56:21 UTC, Johan wrote:
Two additions:
- You forgot about the `--ftime-trace-granularity=`
option ;-P
- The timetrace can also tell you which parts of your program
to separate into separate files + separate compilation.
More tips:
- `--ftime-trace` was
On Sunday, 30 April 2023 at 17:51:15 UTC, Eric P626 wrote:
So what language do you recommend:
* Keep everything in plain C
* Use C patched with macros to gain some language features like
Foreach
* Use BetterC for everything
* Use D for the games, and better C or C for the libraries(To
keep
On Friday, 14 April 2023 at 17:31:02 UTC, backtrack wrote:
however the memory is not releasing.
With the D GC, your object can have three state:
- reachable by GC. If D code can see the reference, then it's
"alive", kept alive by GC scanning. The GC finds the reference
and doesn't touch
On Friday, 14 April 2023 at 11:15:59 UTC, Guillaume Piolat wrote:
OP could add another extern(C) D function to free the allocated
object.
Or another extern(C) D function to call GC.addRoot
Or simpler, add that object to a list of object in D DLL
__gshared list, then clear the list
(or set
On Friday, 14 April 2023 at 04:43:39 UTC, Paul Backus wrote:
If you want the GC to clean up your memory, use `new` to
allocate it instead of `malloc`. Like this:
```d
mystruct* getmystruct()
{
return new mystruct;
}
```
That won't work because the C++ programm calling the D dynlib
On Monday, 3 April 2023 at 23:38:52 UTC, Marcone wrote:
What do you think about using Chat GPT to create functions in D?
Well you can use GitHub Copilot in VSCode, and it is kind of
interesting but at the current time seems like a distracting
waste of time. It will probably get more useful
On Saturday, 1 April 2023 at 08:47:54 UTC, IGotD- wrote:
TLS by default is mistake in my opinion and it doesn't really
help. TLS should be discouraged as much as possible as it is
complicated and slows down thread creation.
It looks like a mistake if we consider none of the D-inspired
On Friday, 31 March 2023 at 19:43:42 UTC, bachmeier wrote:
Those of us that have been scarred by reading FORTRAN 77 code
would disagree. I use global mutables myself (and even the
occasional goto), but if anything, it should be
`__GLOBAL_MUTABLE_VARIABLE` to increase the pain of using them.
On Wednesday, 29 March 2023 at 21:29:20 UTC, Hipreme wrote:
- Linux
- Windows
- MacOS
- Android
- PS Vita
- WebAssembly
- Xbox Series
Check it out on the GitHub:
https://github.com/MrcSnm/HipremeEngine
I also made the game example available now on a separate repo:
On Sunday, 26 March 2023 at 18:07:03 UTC, ryuukk_ wrote:
Even C does it better:
https://gcc.gnu.org/onlinedocs/gcc/Thread-Local.html
Honestly I find TLS-by-default to be a bad idea, it has become a
trap to be avoided, and TLS does occasionally speed up things but
it should be opt-in.
On Friday, 24 March 2023 at 15:41:36 UTC, Guillaume Piolat wrote:
Hi,
The idea to pipe stdout to ffmpeg is sound.
In the following dead repo: https://github.com/p0nce/y4m-tools
you will find a tool that capture a shader, format it into Y4M
and output on stdout.
Y4M output is useful because
On Tuesday, 21 March 2023 at 16:57:49 UTC, monkyyy wrote:
My current method of making videos of using raylib to generate
screenshots, throwing those screenshots into a folder and
calling a magic ffmpeg command is ... slow.
Does anyone have a demo or a project that does something
smarter (or
On Wednesday, 8 March 2023 at 10:49:32 UTC, Markus wrote:
Uh, hope you understand my vague question, sorry about that. I
found D to be the right place because it's not missing any
essential feature I know of.
Well, bounds check often cost a few percent, and you can disable
it or use .ptr
On Sunday, 5 March 2023 at 06:36:05 UTC, novice2 wrote:
It there any recipe to compile x64 .dll without dependencies?
I mean it shoud be used without installing things like
msvcr120.dll.
Dependencies on system dll (advapi32.dll, kerner32.dll) is ok.
I don't experiment on linux yet. But
On Saturday, 4 March 2023 at 03:43:16 UTC, Hipreme wrote:
After doing the WebAssembly port, I thought: This D Runtime
must be very flexible, so, I thought to myself that maybe this
could be a time to try again a very old hobby I had: Doing
homebrew games for PS Vita.
Thanks! Glad the
On Monday, 27 February 2023 at 14:27:25 UTC, bachmeier wrote:
Is there a replacement? If not, why is this even being
discussed? I'm all for breaking changes if there's a benefit
and an easy path to maintain the existing functionality. This
fails on both counts. If you want to enforce that
On Sunday, 19 February 2023 at 18:29:05 UTC, Steven Schveighoffer
wrote:
On 2/19/23 1:26 PM, Steven Schveighoffer wrote:
Testing with run.dlang.io, switching between `char` and `int`
changes the ASM output to show whether it's stored or not.
And BTW, you can override this by assigning a zero
If my understanding is correct, the mere fact of having a:
struct S
{
char[16384] array;
}
And then using it anywhere, will necessarily lead to a S.init
being created and linked, leading to a binary size inflation of
16kb.
This is not a super high concern, but can inform
On Wednesday, 15 February 2023 at 18:21:34 UTC, Hipreme wrote:
I want to know if there is some way to debug memory leaks in
runtime.
I have been dealing with that by using a profiler and checking
D runtime function calls. Usually those which allocates has
high cpu usage so it can be easy for
On Wednesday, 8 February 2023 at 14:08:47 UTC, bachmeier wrote:
this looks like one of those "death by paper cut" things. It
has the smell of a rough edge that needs fixing.
It's the one reason I haven't even tried ImportC. I still wonder
why I need to provide those headers while for linking
On Wednesday, 8 February 2023 at 12:10:59 UTC, zjh wrote:
On Wednesday, 8 February 2023 at 12:07:35 UTC, zjh wrote:
they are always unwilling to add facilities useful to others,
`D`'s community is small, this is the reason!
yeah right let's implement everything that people propose
On Friday, 3 February 2023 at 13:41:35 UTC, Hipreme wrote:
![Hipreme Engine Match3 sample game on
web](https://user-images.githubusercontent.com/10136262/216611608-aebcb31b-a5f3-4153-ac41-44777f19896a.png)
This custom runtime is a most welcome development.
On Monday, 30 January 2023 at 06:38:46 UTC, Daren Scot Wilson
wrote:
I just realized - it's been ages since I've dealt with config
files, beyond editing them as an end user. I work on existing
software where someone else made the choiced and wrote the
code, or it's a small specialized project
On Friday, 27 January 2023 at 20:35:01 UTC, kinke wrote:
Glad to announce the first beta for LDC 1.31. Major changes:
* Based on D 2.101.2.
* ImportC: The C preprocessor isn't invoked yet.
* mac/iOS arm64: Linking with `-g` is working again without
unaligned pointer warnings/errors.
*
On Friday, 6 January 2023 at 12:52:43 UTC, Hipreme wrote:
Hello people. I have tried working again with adam's wasm
minimal runtime, and yesterday I was able to make a great
progress on it.
Awesome! To think that custom druntime can get you out of
platform situations is great risk
On Wednesday, 4 January 2023 at 02:54:51 UTC, Hipreme wrote:
1: Would you be interested in participating in a D game jam?
I'm going to promote those in near future with paid prizes
(though those are going to require using my engine as its main
purpose is making it better).
Maybe.
2: Why
On Sunday, 4 December 2022 at 21:55:52 UTC, Siarhei Siamashka
wrote:
Is it possible to filter packages in this list by @nogc or
@safe compatibility?
You can list DUB packages for "@nogc usage"
https://code.dlang.org/?sort=score=20=library.nogc
There are legitimate uses cases when you can't afford the runtime
machinery (attach/detach every incoming thread in a shared
library), more than not being able to afford the GC from a
performance point of view.
GC gives you higher productivity and better performance with the
time gained.
On Saturday, 3 December 2022 at 19:17:59 UTC, zoujiaqing wrote:
Thank you!!!
When will it support Apple M1 processors?
My macbook has been unable to use D for months.
We've been shipping to M1 users for the last 2 years.
On Tuesday, 15 November 2022 at 18:42:15 UTC, Hipreme wrote:
If you wish to take a look into the current code development,
here it is:
https://github.com/MrcSnm/HipremeEngine
Congrats! It was impressing to see you advance that quickly on
difficult ground.
On Monday, 7 November 2022 at 14:34:38 UTC, Adam D Ruppe wrote:
Putting aside new GC implementation tweaks like I discussed
last week, and not just switching to other functions, this week
I wanted to lecture a bit about how you can reduce your GC
pause times in stock D today:
On Saturday, 5 November 2022 at 12:17:14 UTC, rikki cattermole
wrote:
But yes, it has two others (although idk how much they get
used, or how complete).
Using the first two all the time.
IIRC VisualD projects respect --combined
On Friday, 4 November 2022 at 19:53:01 UTC, Adam D Ruppe wrote:
This isn't that hard; in the old days you'd have `pkg.foo` then
`import pkg.all` instead of `import pkg;`.
It was worse, you would do
import mylib.all;
and now it's just:
import mylib;
Also the "all" concept is bad, it
On Friday, 4 November 2022 at 14:14:43 UTC, Guillaume Piolat
wrote:
One could perhaps use a self-signed certificate that will allow
to reuse that Authenticode reputation, I'm not sure.
Now, to be very clear: there is a chance that even a non-CA
certificate would accumulate trust, since
On Friday, 4 November 2022 at 13:01:09 UTC, Iain Buclaw wrote:
What does in a hardware token mean for us? Is it required to
have it to hand every time we have to sign a beta, rc, final
release binary? Does it bound us to a specific OS because of
locked in proprietary tools?
On Friday, 4 November 2022 at 02:44:57 UTC, Iain Buclaw wrote:
On Tuesday, 1 November 2022 at 21:56:39 UTC, Ruby The Roobster
wrote:
On Tuesday, 1 November 2022 at 19:57:11 UTC, JN wrote:
Windows is showing SmartScreen warnings when trying to run
the Windows installer. Also, the installed
On Monday, 17 October 2022 at 11:35:22 UTC, Iain Buclaw wrote:
Glad to announce the first beta for the 2.101.0 release, ♥ to
the 299 contributors.
http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.101.0.html
As usual please report any bugs at
https://issues.dlang.org
-Iain
On Wednesday, 19 October 2022 at 08:30:57 UTC, Andrea Fontana
wrote:
Hello!
Finally I released the public version of parserino, a html5
parser for linux, macos and windows.
Link:
https://github.com/trikko/parserino
Nice, thanks for this!
On Tuesday, 18 October 2022 at 11:56:30 UTC, Yura wrote:
What I am doing wrong?
The size of your task are way too small.
To win something with OS threads, you must think of tasks that
takes on the order of milliseconds rather than less than 0.1ms.
Else you will just pay extra in
On Sunday, 16 October 2022 at 11:09:31 UTC, Decabytes wrote:
I'm trying to set up Visual Studio 2022 with Visual D, and I'm
running into issues trying to get my project to build correctly.
Some recommendation to use Visual Studio:
- tutorial for installation here:
I'd like to have:
version (D_DebugInfo)
{}
else
{
version = enableFeatureThatIsAnnoyingWhenDebugging;
}
Is there a way to know if debug info is being emitted when
compiling?
"debug is not cutting it because sometimes you really need to
On Saturday, 24 September 2022 at 08:45:33 UTC, Dukc wrote:
Good reasoning from Max.
Thanks Max for the DIP!
September was a great month for the D sub-community around #Dplug
& #audio.
We got no less than 3 releases using D and Dplug:
- **OneTrick Simian**, your synthwave drum synth by Punk Labs. An
algo perc synth, there aren't too many of those, it is on the
level of Microtonic... first
On Sunday, 11 September 2022 at 23:00:24 UTC, Luna wrote:
Hey folks, I have for the (almost) past 2 years been working on
a real-time 2D animation library called
[Inochi2D](https://github.com/Inochi2D/inochi2d) and tooling
for it. Recently I went full time on the project due to
generous
On Thursday, 1 September 2022 at 04:34:40 UTC, Iain Buclaw wrote:
No one has raised an issue so far for all DMD releases since
that occurred in the last 12 months, so either lack of signing
isn't an problem, or people are just ignoring/working around
whatever warning messages you might get
On Thursday, 25 August 2022 at 14:19:47 UTC, MichaelBi wrote:
I downloaded the new dmd 2.1 on Mac, but with fail message of
"unsupported Arch arm64". how can I do? thanks.
## Step 1
Get LDC here: https://github.com/ldc-developers/ldc/releases
- If you are running on Apple Silicon, be sure
https://forum.dlang.org/post/xziwukcfzhsgahpjo...@forum.dlang.org
On Friday, 18 June 2021 at 09:29:35 UTC, Guillaume Piolat wrote:
Update in v1.3.0:
- MOD decoding
- XM decoding
Update in v2.0.0
- no more dependencies
On Friday, 26 August 2022 at 02:45:39 UTC, jordan4ibanez wrote:
Here is the repository, it is very bare bones:
https://github.com/jordan4ibanez/d_glfw_test/tree/v1.0.0
Nice work. I get a crash on Windows though.
Running d_glfw_test.exe
automatically half sizing the window
Program exited
On Thursday, 18 August 2022 at 10:23:35 UTC, Bastiaan Veelo wrote:
## Hacking on a local copy of a package
If your project depends on a package in which you have found a
problem, or you would like to experiment with changes to it,
you can force Dub to use a local copy of the package by
On Tuesday, 16 August 2022 at 15:01:05 UTC, rikki cattermole
wrote:
But one key difference is it is designed to work with the GC
even if it is -betterC @nogc @safe nothrow.
How do you do that?
On Monday, 15 August 2022 at 15:08:01 UTC, Adam D Ruppe wrote:
In my blog this week, I described an idea I've had percolating
in my brain for a bit about a user-defined effect system that
could potentially move nogc, safe, pure, etc to library aliases
- which would let you combine them as a
On Thursday, 11 August 2022 at 11:06:43 UTC, wjoe wrote:
I imagined you could allocate internal buffers for
encoding/decoding on the stack but your reply suggests
otherwise.
Yes.
For example, the QOI-10b codec needs an pallete of 256 16-bit
RGBA, that's 2 kb. Is that portable? There is
On Monday, 8 August 2022 at 16:07:54 UTC, wjoe wrote:
your lib would not just be @nogc but @no_allocation.
All image decoders in gamut need to malloc more than just for
pixel data.
Even STB allocates for format conversion, zlib buffers, 16-bit
<-> 8-bit, etc. it's not just pixel data.
Single
On Friday, 29 July 2022 at 14:28:55 UTC, ryuukk_ wrote:
One suggestion, have a little struct with function pointers for
malloc/free/realloc, so that we can plug our own allocator
Hello, thanks for the heads-up! A few question about your use
case (I believe you are using WebASM), to better
Using D and images I ended up with a problem.
The problem was that parts of my code wanted to decode just
specific image metadata, other just pixels. Others were
interested in 10-bit, and others in this or that format. Finally,
some were concerned about aligned layout and others just wanted
On Monday, 18 July 2022 at 22:48:27 UTC, Bastiaan Veelo wrote:
I abuse `@deprecated` for that purpose in my own code, to
remind myself of some holes that need patching.
— Bastiaan.
I put tags in comments, to text search later.
Usually:
```
// TODO: actually blocks a release
//
On Monday, 27 June 2022 at 21:36:31 UTC, Christian Köstlin wrote:
I played around with the idea and came up with a small dub
package, that is not (yet) uploaded to the dub registry.
Source is available at
https://github.com/gizmomogwai/packageinfo, feedback very
welcome.
I've done
On Wednesday, 15 June 2022 at 19:36:34 UTC, Guillaume Piolat
wrote:
BindBC bindings are multi-platform and can be both static and
dynamic linking.
My bad I understood the reverse, consuming C libraries from D.
I think what you are seeking is described in the D blog.
On Wednesday, 15 June 2022 at 17:37:32 UTC, Templated Person
wrote:
It there any resources on how to build D static (`.lib` / `.a`)
and dynamic libraries (`.dll` / `.so`), and then use them from
C?
Do I need to link and initialize phobos somehow? What if I
don't want to use the D runtime?
On Monday, 6 June 2022 at 22:24:45 UTC, Guillaume Piolat wrote:
My understanding is that while scanning, the GC will see the
data.ptr pointer, but will not scan the area it points to since
it's not in a GC range (the runtime can distinguish managed
pointer and other pointers).
After
On Monday, 6 June 2022 at 22:18:08 UTC, mw wrote:
So when `obj` is cleanup by the GC, obj.data won't be freed by
the GC: because the `data` is non-gc-allocated (and it's
allocated on the non-gc heap), the GC scanner will just skip
that field during a collection scan. Is this understanding
On Monday, 6 June 2022 at 15:13:45 UTC, rempas wrote:
Any ideas?
See:
https://github.com/GhostRain0/xbyak
https://github.com/MrSmith33/vox/blob/master/source/vox/utils/mem.d
On Monday, 6 June 2022 at 08:44:32 UTC, Mike Parker wrote:
## The next meeting
Our next monthly meeting is scheduled for Friday, June 10, at
14:00 UTC. The vision document is the main item on the agenda,
and I expect it to take up most of the oxygen. We'll review the
current draft and decide
1 - 100 of 863 matches
Mail list logo