Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
The Open-Source Libraries Powering Fresh
The Open-Source Libraries Powering Fresh Building Fresh would have been insanely hard if it weren't for these libraries.
-
Type-safe enums in C, using a clang plugin
The C programming language generally treats enums as integers (see “Appendix: For Language Lawyers” for reference).
-
Safer C programming
TL;DR - check out elfs-clang-plugins, cool plugins for clang made at elastifile.
-
Const when you need it
infernu uses row-type polymorphism to propagate read/write capabilities on record fields.
-
Two implementations of DHM type inference
Here are two simple implementations of Damas-Hindley-Milner type inference.
-
In Python, don’t initialize local variables unnecessarily
A common pattern: def foo(): x = some value # but do we need this?
-
Beware of ‘var’ in for loops, JS programmers
Time and time again, I see people using ‘var’ in the initialization part of a for loop.
-
infernu news
In the past month, most of the work on infernu was to stabilize the type system, making decisions about some trade-offs.
-
A simple problem with recursive types and subtyping
Here’s a simple example of recursive types interacting badly with subtyping: T={ foo: T -> A} U={ foo: U -> B} Consider T <: U, therefore (T -> A) <: (U -> B) Which implies: U <: T So T <: U but also U <: T, which is true iff A <: B and B <: A.
-
Identity Crisis
Compared to other tools adding static types to JavaScript, Infernu’s main strengths are full type inference and strong type safety.
-
The wl-pprint package maintainer…
…is now me.