Need of inputs for NSExpression

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 advance for your help!

Regards,
Nethra Ravindran

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-corelibs-dev <swift-corelibs-dev@swift.org> wrote:

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 advance for your help!

Regards,
Nethra Ravindran

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/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 effort.

Atharva Vaidya,
Drexel University, Class of 2020.

···

On Jan 12, 2017, at 11:13 AM, Tony Parker via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:

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-corelibs-dev <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> wrote:

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 advance for your help!

Regards,
Nethra Ravindran

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/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 Swift, we aren’t doing that (yet).

- Tony

···

On Jan 12, 2017, at 8:35 AM, Atharva Vaidya <atharva.vaidya@drexel.edu> wrote:

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 effort.

Atharva Vaidya,
Drexel University, Class of 2020.

On Jan 12, 2017, at 11:13 AM, Tony Parker via swift-corelibs-dev <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> wrote:

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-corelibs-dev <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> wrote:

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 advance for your help!

Regards,
Nethra Ravindran

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Hi Tony,

I have a question.

I guess you were referring to something like "NSExpression(format:"FUNCTION(4.2, 'factorial')")" where factorial is a function defined on an extension of NSNumber. Now, this translation of a string to a function handle/pointer seems quite intimidating to me, in the Swift context :-)

Are there any known approaches? Is there any kind of general guidance you'd give here?

Thank you!

Pushkar N Kulkarni,

IBM Runtimes

Simplicity is prerequisite for reliability - Edsger W. Dijkstra

Some of it is pretty tricky to implement without the dynamic behavior of ObjC though.

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-corelibs-dev swift-corelibs-dev@swift.org wrote:

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 advance for your help!

Regards,

Nethra Ravindran


swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

To: Nethra Ravindran nethraravindran94@gmail.com
From: Tony Parker via swift-corelibs-dev
Sent by: swift-corelibs-dev-bounces@swift.org
Date: 01/12/2017 09:44PM
Cc: swift-corelibs-dev@swift.org
Subject: Re: [swift-corelibs-dev] Need of inputs for NSExpression

Hi Nethra,

-----swift-corelibs-dev-bounces@swift.org wrote: -----

Hi Pushkar,

Hi Tony,

I have a question.

>> Some of it is pretty tricky to implement without the dynamic behavior of ObjC though.
I guess you were referring to something like "NSExpression(format:"FUNCTION(4.2, 'factorial')")" where `factorial` is a function defined on an extension of NSNumber. Now, this translation of a string to a function handle/pointer seems quite intimidating to me, in the Swift context :-)
Are there any known approaches? Is there any kind of general guidance you'd give here?

Yah, that’s the problematic bit.

With Objective-C, we have a whole host of API that allows dynamic lookup of selectors, classes, etc. None of that exists on Linux, and I don’t think we have any reasonable replacement.

- Tony

···

On Jan 16, 2017, at 12:26 AM, Pushkar N Kulkarni <pushkar.nk@in.ibm.com> wrote:

Thank you!

Pushkar N Kulkarni,
IBM Runtimes

Simplicity is prerequisite for reliability - Edsger W. Dijkstra

-----swift-corelibs-dev-bounces@swift.org <mailto:-----swift-corelibs-dev-bounces@swift.org> wrote: -----
To: Nethra Ravindran <nethraravindran94@gmail.com <mailto:nethraravindran94@gmail.com>>
From: Tony Parker via swift-corelibs-dev
Sent by: swift-corelibs-dev-bounces@swift.org <mailto:swift-corelibs-dev-bounces@swift.org>
Date: 01/12/2017 09:44PM
Cc: swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>
Subject: Re: [swift-corelibs-dev] Need of inputs for NSExpression

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-corelibs-dev <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> wrote:

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 advance for your help!

Regards,
Nethra Ravindran

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev