News for hackers. Stuff that matters.

practicalswift

Re:Swift is Open Source on Thursday December 03, 2015 @05:13PM (#10673115)
I'm really impressed by the attentiveness of the Swift compiler team. Found this in the repo: https://github.com/apple/swift/commit/666646fee95bc75ca81e1d...

One tweet and the bug is fixed within a couple of hours. Wow!

Found that issue while working on the Pythonic.swift project: https://github.com/practicalswift/Pythonic.swift (btw, contributors welcome! Know Python? If so, a very good way to jump into Swift programming is by contributing to Pythonic.swift: a Swift implementation of selected parts of Python standard library)

Re:Swift is Open Source on Thursday December 03, 2015 @01:55PM (#10671703)
Happy to see that my collection of Swift compiler crashes (see https://github.com/practicalswift/swift-compiler-crashes) has been part of the official Swift repo since September 2014: https://github.com/apple/swift/commit/e5ca8be1a090335d401cd1... :-)

A previous HN thread about the swift-compiler-crashes project: https://news.ycombinator.com/item?id=9020206

Re:Looking Back at Three Months of afl-fuzz on Sunday January 25, 2015 @05:28AM (#8942584)
These are the crashing statements:

  SELECT n()AND+#0;
  SELECT strftime()
  DETACH(SELECT group_concat(q));
  DROP TABLE IF EXISTS t0; CREATE TABLE t0(t);
  INSERT INTO t0 SELECT strftime();
  SELECT quote(t) FROM t0
See https://www.sqlite.org/src/info/fe578863313128 for the patch.
Yes, the project was updated to compile without warnings in Xcode6-Beta3 directly after the release. Please note that most of the changes introduced in Xcode6-Beta3 are breaking, so the project won't compile in the earlier betas any more. So go get Xcode6-Beta3 if you want to use Pythonic.swift :-)
The current Swift standard library is actually very small and limited, so Pythonic.swift is an attempt to extend the Swift language with a more comprehensive standard library that quite a few developers are already familiar with. I love both Python and Swift, so I thought why not let them marry? :-)