Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

On the viability of Pure Type Systems

Name: Anonymous 2009-07-30 2:50

The debate of whether to use dynamic or static typing has long since been dismissed by the usual sentiment of adaptive context. General wisdom holds that for large, complex systems, a static type system is beneficial towards giving structure, whilst a dynamic type system allows the flexibility needed for quickly evolving projects and specialized uses, such as reflection and metaprogramming. Of course, there are instances of cross-over use, but I'm speaking in general terms here.

What if, however, there were "hybrid" systems that allow for the advantages of both on demand? Indeed, the recent adventures on the JVM and CLR, and C++'s new standard all adopt somewhat of this idea. But simply "mixing" the two, I feel, is heavy handed and prone to abuse. Given enough effort, a modicum of dynamic power can corrupt the most strict of static systems.

Researchers have long known that advances in type theory mainly stem from the tension between power and safety. Surely there is a system that can afford both? Having thought upon this matter a bit, and done some light reading, I came upon this:

http://www.cs.chalmers.se/~jwr/pure/

A Pure Type System, it seems, combines both type safety and UNLIMITED POWER. Terms must still be constrained by their type, but those types are themselves terms, and so can represent any arbitrary specification. With an infinite tower of terms, even the most extravagant dynamic ideas are statically checked for consistency.

So, /prog/, discuss.

Name: Anonymous 2009-07-30 3:15

what the fuck are you talking about?

Name: Anonymous 2009-07-30 4:14

I think I like Haskell's system better.

Name: Anonymous 2009-07-30 5:20

I think I like sucking cocks better.

Name: Anonymous 2009-07-30 10:19

BRB gotta read a 70 page master thesis to comment on 4chan.

Name: Anonymous 2009-07-30 11:17

>>5
Well, there is an 11 page article, you know. It seems kind of interesing, especially when he says:
PSTs provide a single syntax for terms, types and kinds. This makes it possible to use a single data type to represent all three levels, and to use a single set of utility functions (like parsing, pretty-printing, substitution functions) that work on all three levels.

Name: Anonymous 2009-07-30 11:21

i dont get it

Name: Anonymous 2009-07-30 11:25

>>7
Read ``Basic Category Theory for Computer Scientists''.

Name: Anonymous 2009-07-30 11:26

>>6
Well, there is an 11 page article
Feels like my first "hello, world".

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-07-30 11:32

tl;dr they made slightly more usable haskell by reducing restrictions on "functional purity" to be defined by programmer.



________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
The opportunity to prove yourself a hero is long gone.

Name: Anonymous 2009-07-30 11:55

C-family: dragged kicking and screaming towards functional programming
Academia: creating convoluted systems so that they can write c code in Haskell

God damn all languages really suck.

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-07-30 12:02

>>12 Except JavaScript. Which is C-derived and functional.



____________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
There are two kinds of scientific progress: the methodical experimentation and categorization which gradually extend the boundaries of knowledge, and the revolutionary leap of genius which redefines and transcends those boundaries. Acknowledging our debt to the former, we yearn, nonetheless, for the latter.

Name: Anonymous 2009-07-30 13:12

>>12
no tco

Name: Anonymous 2009-07-30 13:17

>>13
JavaScript leverages AJAX libraries and world-class JIT compilers to provide clients worldwide with robust, scalable, modern turnkey implementations of flexible, personalized, cutting-edge Internet-enabled e-business application product suite e-solution architectures that accelerate response to customer and real-world market demands and reliably adapt to evolving technology needs, seamlessly and efficiently integrating and synchronizing with their existing legacy infrastructure, enhancing the e-readiness capabilities of their e-commerce production environments across the enterprise while giving them a critical competitive advantage and taking them to the next level.

Name: Anonymous 2009-07-30 13:41

>>10
That has nothing to do with the article, you moron. Like with everything else, you formed an opinion based on superficial misobservations and sheer crazy. Fucking stupid arrogant cunt...

Name: Anonymous 2009-07-30 15:21

Name: ​​​​​​​​​​ 2010-10-26 6:54

Name: Anonymous 2011-02-03 8:40

Don't change these.
Name: Email:
Entire Thread Thread List