September 25, 2015 Re: Dub package with C code | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Thursday, 24 September 2015 at 12:55:12 UTC, Adam D. Ruppe wrote:
> On Thursday, 24 September 2015 at 06:21:02 UTC, Sebastiaan Koppe wrote:
>> Because I want to focus on the product I am building right now, not on side-projects.
>
> We should write a C to D converter. We have htod but I'm talking the whole source of it. That might be useful for times like this.
>
> But I have other things to do too...
It would be really cool to have that. But aren't there a lot of corner cases that require manual intervention?
Having said that, htod has been invaluable. And if I decide to port it, ctod will be invaluable as well, even though it won't get it 100% right.
|
September 25, 2015 Re: Dub package with C code | ||||
---|---|---|---|---|
| ||||
Posted in reply to Laeeth Isharc | On Thursday, 24 September 2015 at 18:19:49 UTC, Laeeth Isharc wrote: > nice work! To be honest it took me 2 hours, starting from git clone > worth a little blog post on the experience so others can be inspired by and benefit from yours? I would be happy to write something. Any particular blog platform? Or do I first have to roll out my own? |
September 25, 2015 Re: Dub package with C code | ||||
---|---|---|---|---|
| ||||
Posted in reply to Atila Neves | On Friday, 25 September 2015 at 01:36:11 UTC, Atila Neves wrote:
> On Thursday, 24 September 2015 at 11:38:08 UTC, Sebastiaan Koppe wrote:
>> Or can reggae also pull packages from there?
>
> Yes.
That is nice.
I look at reggae once or twice. It looked like a lot of bootstrapping vs. `dub init && dub build`. And to be honest, I couldn't make immediate sense of the api.
Is there any small example that builds some d code (including pulling deps)?
|
September 25, 2015 Re: Dub package with C code | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sebastiaan Koppe | On Friday, 25 September 2015 at 01:48:57 UTC, Sebastiaan Koppe wrote:
> On Thursday, 24 September 2015 at 18:19:49 UTC, Laeeth Isharc wrote:
>> nice work!
>
> To be honest it took me 2 hours, starting from git clone
>
>> worth a little blog post on the experience so others can be inspired by and benefit from yours?
>
> I would be happy to write something. Any particular blog platform? Or do I first have to roll out my own?
Great! I think it's clear more blog posts will be something that helps open up awareness to value of D. Little things cumulatively make a big difference, and you'll more than get back the effort invested one way and another over time.
Blog platform - I guess nothing wrong with wordpress etc. I am between platforms right now. I just don't want to deal with wordpress any more, and haven't yet picked something I like better. Something like Nikola and dicebot's mood with an nginx proxy seems appealing. Mood is v nice but not quite mature / stable yet. I like idea of everything in D so it's easy to understand and extend as you wish.
|
September 25, 2015 Re: Dub package with C code | ||||
---|---|---|---|---|
| ||||
Posted in reply to Laeeth Isharc | On Friday, 25 September 2015 at 06:04:09 UTC, Laeeth Isharc wrote:
> Blog platform - I guess nothing wrong with wordpress etc. I am between platforms right now. I just don't want to deal with wordpress any more, and haven't yet picked something I like better. Something like Nikola and dicebot's mood with an nginx proxy seems appealing. Mood is v nice but not quite mature / stable yet. I like idea of everything in D so it's easy to understand and extend as you wish.
I meant if there is already a place where I can upload my post to. Something like blog.dlang.org
I might go with mood. But I would probably dockerize it and run it behind jwilder/nginx-proxy.
|
September 25, 2015 Re: Dub package with C code | ||||
---|---|---|---|---|
| ||||
Posted in reply to Laeeth Isharc | On Thursday, 24 September 2015 at 18:19:49 UTC, Laeeth Isharc wrote:
> On Thursday, 24 September 2015 at 02:43:20 UTC, Sebastiaan Koppe wrote:
>> I have just created bindings for libxlsxwriter, an c library for creating excel files.
>>
>> Used the htod tool to do most of the work, and only had to adjust some things - mainly because libxlsxwriter uses data structures written in macro's.
>>
>> Right now I am making a dub package and I would like to aim for convenience for end-users (read: me).
>>
>> Therefor I decided to include the compiled static library inside the package. I only use Linux 64-bit myself, but this is obviously limiting for other people.
>>
>> The other option I had was to include the whole c code, depend on gcc or clang, and have dub (somehow) first build libxlsxwriter. But that seemed a bit too much...
>>
>> Another option would be to require end-users to build libxlsxwriter themselves.
>>
>> What do you guys recommend?
>
> nice work!
>
> worth a little blog post on the experience so others can be inspired by and benefit from yours?
It seems this would be good content for the wiki. If we put this sort of thing there, others will start to look at the wiki, and Google will send them there. That wouldn't prevent anyone from also posting the same content on their own blog.
|
September 25, 2015 Re: Dub package with C code | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sebastiaan Koppe | > I meant if there is already a place where I can upload my post to. Something like blog.dlang.org
OT:
Once again, I'm absolutely sure tha D should have an official blog! Forums can't replace blogs, forums are for discussions, not for content presentation.
|
September 25, 2015 Re: Dub package with C code | ||||
---|---|---|---|---|
| ||||
Posted in reply to tired_eyes | On Friday, 25 September 2015 at 12:25:52 UTC, tired_eyes wrote:
>> I meant if there is already a place where I can upload my post to. Something like blog.dlang.org
>
> OT:
> Once again, I'm absolutely sure tha D should have an official blog! Forums can't replace blogs, forums are for discussions, not for content presentation.
I've long agreed with that. Now that we have "This Week in D" we have a regular source for content.
|
September 25, 2015 Re: Dub package with C code | ||||
---|---|---|---|---|
| ||||
Posted in reply to bachmeier | On Friday, 25 September 2015 at 14:15:20 UTC, bachmeier wrote:
> On Friday, 25 September 2015 at 12:25:52 UTC, tired_eyes wrote:
>> Once again, I'm absolutely sure tha D should have an official blog! Forums can't replace blogs, forums are for discussions, not for content presentation.
>
> I've long agreed with that. Now that we have "This Week in D" we have a regular source for content.
FYI, if you guys want to set something up for multiple contributors like a traditional blog, I'm willing to move TWID do it.
I've been kinda wanting to do a blog thing but I just haven't brought myself to set anything up.
|
September 25, 2015 Re: Dub package with C code | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Friday, 25 September 2015 at 14:24:36 UTC, Adam D. Ruppe wrote:
> FYI, if you guys want to set something up for multiple contributors like a traditional blog, I'm willing to move TWID do it.
>
> I've been kinda wanting to do a blog thing but I just haven't brought myself to set anything up.
That's a possibility too, but I like the idea of you continuing to do what you've been doing, and then on the blog there is an announcement of the new issue of TWID along with a short discussion and a link to the whole thing.
d.announce is pretty busy these days. I've always felt those posts were more appropriate for an official blog. As would things like the subject of this thread, rather than letting it get buried in the forum.
First issue would be getting approval from Walter and Andrei. Second would be finding someone that knows how to do it.
|
Copyright © 1999-2021 by the D Language Foundation