[swift-corelibs-dev] Need of inputs for NSExpression

2017-01-12 Thread Nethra Ravindran via swift-corelibs-dev
Hi All, This is Nethra Ravindran and I’m a university student doing my internship. I would like to contribute to Swift Foundation. I have looked upon NSExpression and I am interested in contributing the implementation. I would be very thankful if I could get some pointers about it. Thank you in a

Re: [swift-corelibs-dev] Question about NSDecimalCopy

2017-01-12 Thread Tony Parker via swift-corelibs-dev
Hi Morten, > On Jan 9, 2017, at 2:16 AM, Morten Bek Ditlevsen via swift-corelibs-dev > wrote: > > Hi list, > I was looking at the NSDecimal.swift to learn a bit about the implementation > of the Decimal type. > I get that a lot of the API in this type exists for compatibility reasons > with t

Re: [swift-corelibs-dev] Need of inputs for NSExpression

2017-01-12 Thread Tony Parker via swift-corelibs-dev
Hi Nethra, Thanks for your interest! Probably the best place to get started would be to take a look at our documentation about NSExpression. Some of it is pretty tricky to implement without the dynamic behavior of ObjC though. - Tony > On Jan 12, 2017, at 4:24 AM, Nethra Ravindran via swift-c

Re: [swift-corelibs-dev] Need of inputs for NSExpression

2017-01-12 Thread Atharva Vaidya via swift-corelibs-dev
Hello all, I've tried to port NSExpression to Swift with a very crude, non-complete, untested, and possibly incorrect implementation. Here's the link to the repo: https://github.com/AtharvaVaidya/Expression . I would love to contribute to this effo

[swift-corelibs-dev] Opinions wanted: Special Handling of /proc FileSystem on Linux?

2017-01-12 Thread Carl Brown1 via swift-corelibs-dev
Hi, I run the Austin Swift meetup group, and a question came up about the /proc filesystem on Linux: The question involved the inability to get any useful information from Data (contentsOf: URL(fileURLWithPath: "/proc/sys/fs/file-max")). It turns out that Data(contentsOf:) does a stat() on th

Re: [swift-corelibs-dev] Need of inputs for NSExpression

2017-01-12 Thread Tony Parker via swift-corelibs-dev
Sure! We can have a discussion here about what you’ve done, or if you are feeling up to it, you can put up a PR with some of your code. Keep in mind that our #1 goal is API compatibility with the Darwin Foundation, so while it’s tempting to reinvent the thing from scratch to make it better for

Re: [swift-corelibs-dev] Opinions wanted: Special Handling of /proc FileSystem on Linux?

2017-01-12 Thread Philippe Hausler via swift-corelibs-dev
IMHO it seems reasonable for Foundation to return the contents of procfs items when constructing Data. That being said - I would probably favor a more structured parsing for actually using that resultant Data than just a blob. Those structured elements are probably not very portable so perhaps t