[swift-users] Parsing Decimal values from JSON

2017-10-28 Thread Evtim Papushev via swift-users
Hello :) I am trying to find a way to parse a number as Decimal without losing the number's precision. It seems that the JSON decoder parses it as Double then converts it to Decimal which introduces errors in the parsing. That behavior is in fact incorrect. Does anyone know if there is a way t

Re: [swift-users] Package Manager: Link to a static library.

2017-10-11 Thread Evtim Papushev via swift-users
Thanks, but that would not work. Those static library files are not in /usr/lib nor /usr/local/lib. They are part of the package I’m trying to link against. So, swift build checkouts the repo. Then it should link them from it. Best, Evtim > On Oct 11, 2017, at 13:49, Fred Appelman wrote: > >

[swift-users] Package Manager: Link to a static library.

2017-10-11 Thread Evtim Papushev via swift-users
Hi everyone, I’m trying to achieve something relatively simple: I have a C wrapper around C++ code that is built with CMake. So, I have a set of static libraries (.a files) and one header file. I’m trying to create a Swift Package that contains those files, so I can include them in a project.

Re: [swift-users] [Swift3][Linux][URLSession]: Core dump when trying to make simple HTTP request

2016-10-28 Thread Evtim Papushev via swift-users
Hi Steven, Do you run your project in Xcode Playgrounds or under Linux? Generally processes are associated with a single thread, the main thread. Once it exits the process and all executing threads are terminated. 1. Queue.async only schedules a task to be executed, then continues with the res