June 30, 2016 Re: Call to Action: making Phobos @safe | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bennet Leff | On 6/30/2016 11:54 AM, Bennet Leff wrote:
> On Sunday, 26 June 2016 at 13:13:01 UTC, Robert burner Schadek wrote:
>> It would be awesome if you would create that process model in the wiki and at
>> it to your action list
>> http://wiki.dlang.org/Walter_Andrei_Action_List#Walter_and_Andrei.27s_Action_List
>>
>> So it does not get lost and people can find it.
>
> Could you elaborate on list option 9 "create a module that enables code to be
> run on GPU." Wouldn't the Derelict OpenCL bindings satisfy that need?
I don't know. John Colvin is working on this, he could give a far better appraisal of the state.
|
June 30, 2016 Re: Call to Action: making Phobos @safe | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Thursday, 30 June 2016 at 21:31:25 UTC, Walter Bright wrote: > On 6/30/2016 11:54 AM, Bennet Leff wrote: >> On Sunday, 26 June 2016 at 13:13:01 UTC, Robert burner Schadek wrote: >>> It would be awesome if you would create that process model in the wiki and at >>> it to your action list >>> http://wiki.dlang.org/Walter_Andrei_Action_List#Walter_and_Andrei.27s_Action_List >>> >>> So it does not get lost and people can find it. >> >> Could you elaborate on list option 9 "create a module that enables code to be >> run on GPU." Wouldn't the Derelict OpenCL bindings satisfy that need? > > I don't know. John Colvin is working on this, he could give a far better appraisal of the state. Some pointers: https://github.com/John-Colvin/clWrap http://dconf.org/2016/talks/colvin.html |
July 01, 2016 Re: Call to Action: making Phobos @safe | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | On Thursday, 30 June 2016 at 21:55:33 UTC, Seb wrote:
> On Thursday, 30 June 2016 at 21:31:25 UTC, Walter Bright wrote:
>> On 6/30/2016 11:54 AM, Bennet Leff wrote:
>>> On Sunday, 26 June 2016 at 13:13:01 UTC, Robert burner Schadek wrote:
>>>> [...]
>>>
>>> Could you elaborate on list option 9 "create a module that enables code to be
>>> run on GPU." Wouldn't the Derelict OpenCL bindings satisfy that need?
>>
>> I don't know. John Colvin is working on this, he could give a far better appraisal of the state.
>
> Some pointers:
>
> https://github.com/John-Colvin/clWrap
> http://dconf.org/2016/talks/colvin.html
Thanks I'll take a further look although it doesn't look like his project is ready for more contributors to add to it yet.
|
July 14, 2016 Re: Call to Action: making Phobos @safe | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Saturday, 25 June 2016 at 22:44:37 UTC, Walter Bright wrote:
> Andrei identified a key blocker for D adoption is the incomplete implementation of @safe. I'm working on the compiler end. But Phobos has a lot of code that is pointlessly not @safe, making it frustrating to write @safe code that calls Phobos. Some are listed in Bugzilla, most are not.
>
> So here's what to do:
>
> 1. Pick a module, any module, let's say 'std.foo'.
>
> 2. Compile it:
>
> dmd -unittest -main std/foo
>
> and run:
>
> foo
>
> to verify that the unittests work.
>
> 3. Take a look at foo.d and look for a unittest that is not marked @safe.
>
> 4. Add @safe to the unittest
>
> 5. Do Step 2 on it.
>
> 6. If it works, submit a PR with the annotation (well, try to collect a few of these in one module)
>
> 7. If it doesn't work, find out where the unsafe code is and fix it, and submit a PR.
>
>
> I've submitted maybe a dozen PRs against Phobos over the last day from doing this. It's only a start.
It's possible that someone introduced new unittests that aren't explicitly @safe or @system, but with the exception of std.stream (because of imminent deprecation) all phobos unittests are now explicity tagged. So now, if you want to help make Phobos @safe, the steps are:
1. Pick a module, any module
2. Search for a @system unittest
3. Change @system to @safe
4. Figure out why it doesn't compile that way and either edit code or file bugs
Atila
|
July 15, 2016 Re: Call to Action: making Phobos @safe | ||||
---|---|---|---|---|
| ||||
Posted in reply to Atila Neves | On 7/14/2016 8:57 AM, Atila Neves wrote:
> It's possible that someone introduced new unittests that aren't explicitly @safe
> or @system, but with the exception of std.stream (because of imminent
> deprecation) all phobos unittests are now explicity tagged. So now, if you want
> to help make Phobos @safe, the steps are:
>
> 1. Pick a module, any module
> 2. Search for a @system unittest
> 3. Change @system to @safe
> 4. Figure out why it doesn't compile that way and either edit code or file bugs
Awesome, thank you!
|
Copyright © 1999-2021 by the D Language Foundation