Live data from Hacker News

PureScript 0.13 Release

github.com

21–30 of 39 posts

Re: PureScript 0.13 Release

#21

Are there other languages that make an opinion on tabs/spaces? This seems nice. > The only whitespace now allowed in code is ASCII space and line endings. Since you must use indentation to format PureScript code (unlike Haskell), we felt it was best to be more restrictive in what you can write instead of allowing potentially confusing behavior (implicit tab-width, zero-width spaces, etc). You can still use unicode wh…

Zig doesn't allow tabs in source code—which is a bit odd, since they don't have significant whitespace.

Re: PureScript 0.13 Release

#22
post #2

I noticed a few languages removing support for octal and binary literals. I wonder why. I find them useful and the parser overhead seems minimal to keep them around.

We found no usages of it in the wild. If there is real-world need for them, we'll consider adding them back.

FWIW I use binary literals a bunch in python, either when working with binary file formats or with bitfields.

Re: PureScript 0.13 Release

#23

If PureScript is Haskell, TypeScript is ML Lately, TypeScript has become more scalable across existing npm libraries and also introduced new advanced types. It looks like Microsoft guys learned a lot from C# and F# type system and feedback from their users https://www.typescriptlang.org/docs/handbook/advanced-types....

Once you get a taste for higher kinded types (aka: type constructors), there is no going back! PureScript is fantastic language with an active an open community. Best place to start (IMHO) is https://github.com/lumihq/purescript-react-basic You can pretty quickly get a react app up and running

Don't get me wrong. I love PureScript and HKT but the fact that it requires complete buyout to Purescript ecosystem overwhelms my team members and becomes a hard sell. To build a PS layer on top existing JS libraries isn't straight forward. Now that they introduced so many breaking changes, it will take time for other PS libraries to catch up. May be I might go back to PS when 1.0 release happens and I hope many things are stable including libraries which I need in day to day full stack development.

Typescript in the last couple of years introduced a nice way to compose types and ways to get rid of many other common JS gotchas. They have type definitions for almost all the usable npm libraries, which helps you jump-start the development.

Re: PureScript 0.13 Release

#24
Syntax question, after looking at a couple of examples: Long wished more languages had a ‘where’ clause (suspect it could be really nice to have in Python), but why the ‘where’ at the end of the initial ‘module’ line? I guess it’s doing something consistent, but it does look a bit odd

Re: PureScript 0.13 Release

#25

Earlier quoted context omitted.

Once you get a taste for higher kinded types (aka: type constructors), there is no going back! PureScript is fantastic language with an active an open community. Best place to start (IMHO) is https://github.com/lumihq/purescript-react-basic You can pretty quickly get a react app up and running

Don't get me wrong. I love PureScript and HKT but the fact that it requires complete buyout to Purescript ecosystem overwhelms my team members and becomes a hard sell. To build a PS layer on top existing JS libraries isn't straight forward. Now that they introduced so many breaking changes, it will take time for other PS libraries to catch up. May be I might go back to PS when 1.0 release happens and I hope many thin…

It really didn't take long for libraries to catch up, we already released a Package Set compatible with 0.13, two days after the release. That's a set of the most used ~200 libraries in the ecosystem.

https://github.com/purescript/package-sets/releases/tag/psc-...

Re: PureScript 0.13 Release

#26

Earlier quoted context omitted.

We found no usages of it in the wild. If there is real-world need for them, we'll consider adding them back.

FWIW I use binary literals a bunch in python, either when working with binary file formats or with bitfields.

Yes, I'm not saying there aren't usages for them in general, but PureScript currently occupies a niche that doesn't get down to the level of binary file formats. This change is more about "only supporting what we need to right now", rather than "we don't like binary literals". As noted elsewhere, it's not difficult to add support for them when we need to.

Re: PureScript 0.13 Release

#27

If PureScript is Haskell, TypeScript is ML Lately, TypeScript has become more scalable across existing npm libraries and also introduced new advanced types. It looks like Microsoft guys learned a lot from C# and F# type system and feedback from their users https://www.typescriptlang.org/docs/handbook/advanced-types....

I had the impression:

ClojureScript == Lisp

PureScript == Haskell

Reason == ML

TypeScript == C#

Re: PureScript 0.13 Release

#28
post #24

Syntax question, after looking at a couple of examples: Long wished more languages had a ‘where’ clause (suspect it could be really nice to have in Python), but why the ‘where’ at the end of the initial ‘module’ line? I guess it’s doing something consistent, but it does look a bit odd

It's something that comes from Haskell. The `where` keyword always starts a new layout/indentation context. It's not strictly necessary and there are ways around it, so it's just a point of consistency.

Re: PureScript 0.13 Release

#29
post #8

What happened to the original author of PS? https://github.com/purescript/purescript/graphs/contributors

I don't speak for Phil, but I do work with him at Lumi where we use PureScript for almost all frontend. It's been really fun to show that PureScript can be used successfully in production.

You can see some of our tutorials and open source projects here: https://www.lumi.dev

Re: PureScript 0.13 Release

#30

If PureScript is Haskell, TypeScript is ML Lately, TypeScript has become more scalable across existing npm libraries and also introduced new advanced types. It looks like Microsoft guys learned a lot from C# and F# type system and feedback from their users https://www.typescriptlang.org/docs/handbook/advanced-types....

Anders Hejlsberg, who created C#, has been heading up the Typescript team at Microsoft.
Post reply on HN