type

62 stories and discussions about type, aggregated from every source we track.

1.

Type an address, break everything. Any website becomes a destructible pixel-art level, solo or with friends.

195 points•HugoDz•about 2 months ago•41 comments•
2.

Hoi hoi! 👋 I'm @nyaomaru, a frontend engineer just back from a short vacation on Texel, a small...

80 points•nyaomaru•about 2 months ago•28 comments
4.

AttaLambda is a small language built on pure, untyped lambda calculus, with readable syntax, exact rational numbers, and runtime type checks.

47 points•kserrec•2 months ago•7 comments•
5.

A high-performance and high-level purely functional data-parallel array programming language that can execute on the GPU and CPU.

32 points•fanf•about 2 months ago•2 comments
6.

I had a bug that took me a while to track down. The problem was type punning. A pointer cast worked fine at -O0 and silently broke at -O2. The C vs C++ distinction here is genuinely treacherous, and most blog posts on…

32 points•ingve•2 months ago•13 comments•
7.

mypy assisted error handling, exception mechanisms in other languages, fun with pattern matching and type variance

29 points•karlicoss•about 7 years ago•5 comments
8.

<p>Discussion thread: <a href="https://discuss.python.org/t/pep-827-type-manipulation/106353" rel="ugc">https://discuss.python.org/t/pep-827-type-manipulation/106353</a></p>

18 points•a5rocks•9 months ago•5 comments
9.

Have you ever written a type that you appreciated so much you still think about it? Like eating a really good meal, where if you try hard enough, you can sti...

13 points•schneems•about 2 months ago•3 comments
10.

A post touring resources you can use to learn how to implement a type checker or type inference algorithm

12 points•rbxbx•over 4 years ago•1 comment
13.

<p>From the abstract:</p> <blockquote> <p>We consider the problem of reconciling a dependently typed functional language with imperative features such as mutable higher-order state, pointer aliasing, and non-termination. We propose Hoare Type Theory (HTT), which incorporates Hoare-style specifications into types, making it possible to statically track and enforce correct use of side effects. The main feature of HTT is the Hoare type {P}x:A{Q} specifying computations with precondition P and postcondition Q that return a result of type A. Hoare types can be nested, combined with other types, and abstracted, leading to a smooth integration with higher-order functions and type polymorphism. We further show that in the presence of type polymorphism, it becomes possible to interpret the Hoare types in the “small footprint” manner, as advocated by Separation Logic, whereby specifications tightly describe the state required by the computation. We establish that HTT is sound and compositional, in the sense that separate verifications of individual program components suffice to ensure the correctness of the composite program.</p> </blockquote> <p>Basically, they combine Hoare Triples with Dependent Types, which seems pretty interesting.</p>

8 points•lojikil•about 9 years ago•0 comments
14.
7 points•jcs•over 12 years ago•2 comments
15.

Brian McKenna posted an interesting video and gist on implementing a type safe printf in Idris with dependent types. This led me down a nice little &hellip;

7 points•mavnn•over 12 years ago•0 comments
16.

You needed a function to read a number, or a type. It also built a place to keep the bytes? That was not free.

6 points•sebastianconcpt•about 2 months ago•1 comment•
17.

This is a casual look at a WIP piece of software that I know nothing about - don't draw too many conclusions from this. Astral is doing The Lord's work with python tooling. Ruff is a joy to use for both formatting and…

6 points•spookylukey•over 1 year ago•0 comments
19.

<p>From the Abstract:</p> <blockquote> <p>Localizing type errors is challenging in languages with global type inference, as the type checker must make assumptions about what the programmer intended to do. We introduce Nate, a data-driven approach to error localization based on supervised learning. Nate analyzes a large corpus of training data — pairs of ill-typed programs and their “fixed” versions — to automatically learn a model of where the error is most likely to be found. Given a new ill-typed program, Nate executes the model to generate a list of potential blame assignments ranked by likelihood. We evaluate Nate by comparing its precision to the state of the art on a set of over 5,000 ill-typed OCaml programs drawn from two instances of an introductory programming course. We show that when the top-ranked blame assignment is considered, Nate’s data-driven model is able to correctly predict the exact sub-expression that should be changed 72% of the time, 28 points higher than OCaml and 16 points higher than the state-of-the-art SHErrLoc tool. Furthermore, Nate’s accuracy surpasses 85% when we consider the top two locations and reaches 91% if we consider the top three.</p> </blockquote>

6 points•lojikil•about 9 years ago•0 comments
20.

TeamTavern is a site where people find teammates for online games. Its browser app and its API server...

5 points•bklaric•about 2 months ago•0 comments
21.

Sound more intelligent on the internet with these quick and easy tips.

5 points•ugur•7 months ago•10 comments
22.

In a prior <a href="https://hackernoon.com/typeclass-instance-selection-fea1068920e6" target="_blank">post</a> I wrote about how type class instance selection worked. To help get a sense of good type class <a…

5 points•pushcx•over 9 years ago•0 comments
23.

<blockquote> <p>Dynamically-typed object-oriented languages please programmers, but their lack of static type information penalizes performance. Our new implementation techniques extract static type information from declaration-free programs. Our system compiles several copies of a given procedure, each customized for one receiver type, so that the type of the receiver is bound at compile time. The compiler predicts types that are statically unknown but likely, and inserts run-time type tests to verify its predictions. It splits calls, compiling a copy on each control path, optimized to the specific types on that path. Coupling these new techniques with compile-time message lookup, aggressive procedure inlining, and traditional optimizations has doubled the performance of dynamically-typed object-oriented languages.</p> </blockquote> <p><a href="https://dl.acm.org/doi/10.1145/74818.74831" rel="ugc">ACM</a></p>

4 points•calvin•about 2 months ago•0 comments
24.
4 points•winwang•about 2 months ago•0 comments•
25.
4 points•PaulHoule•about 2 months ago•2 comments•
26.

A topos can be specified by the geometric theory that it classifies. Though the sequents of a theory are described formally and syntactically, its interaction with the world of sets (through set-indexed disjunctions…

4 points•measurablefunc•about 2 months ago•0 comments•
29.

Discover properties through immersive video tours. Swipe through listings TikTok-style, explore on an interactive map, and find your next home with video walkthroughs.

3 points•thomasmeany•about 2 months ago•0 comments•
30.

The Rock’s rise and fall—and the end of a certain type of movie stardom.

3 points•sebg•about 2 months ago•0 comments•
31.

The Grafbase Blog: The API platform for mission-critical applications

3 points•pimeys•over 3 years ago•0 comments
32.

From Partitions to Wordle - Type Safety with Phantom Types

3 points•adamshaylor•over 4 years ago•0 comments
33.
2 points•xlii•about 2 months ago•0 comments•
34.

Professor Madhab Neupane and collaborators have demonstrated experimental evidence of altermagnetism in a layered material, opening a promising pathway toward future quantum and spintronic technologies.

2 points•geox•about 2 months ago•0 comments•
35.
36.
2 points•elsewhen•about 2 months ago•0 comments•
37.

TypeSafe's Jev answers a closed question with a fixed answer type plus a number saying how sure it is. We moved our four decisions over to it. What worked, what didn't, and one thing we didn't expect.

2 points•aozisik•2 months ago•0 comments•
38.

Jev is TypeSafe AI's decision model. Learn what state and typed questions mean, how its answers work, and where type safety ends.

2 points•flashbrew•2 months ago•0 comments•
39.

When you charge your EV from any type of charger, there are inevitable losses, but they differ depending on the level of the charger used.

2 points•cisc•2 months ago•0 comments•
41.

Web Inspector now has two great tools designed to make debugging JavaScript programs easier: the Code Coverage Profiler and the Type Profiler.

2 points•tizoc•about 11 years ago•0 comments
43.
1 points•rajangdavis•about 2 months ago•0 comments•
44.

Type text, pick one of 41 Kokoro-82M voices in six languages and download a WAV. The model runs in your browser tab, and nothing is uploaded. Free.

1 points•mazzystar•about 2 months ago•1 comment•
45.
1 points•AlexeyBrin•about 2 months ago•0 comments•
46.

The history of the printed word is full of bibliographic twists and turns, major historical moments, and the significant printing of books now so obscure no one has read them since their publication.

1 points•geox•about 2 months ago•0 comments•
47.

Summary of a small discussion on how to track, at type level, whether a list is constructed forwards or backwards. It remains to be seen whether this will be useful in everyday life, but the proposal is driven by a…

1 points•nukifw•about 2 months ago•0 comments•
48.
1 points•samxif•about 2 months ago•0 comments•
49.

The more modern type of reformer goes gaily up to [a fence] and says, “I don’t see the use of this; let us clear it away.” To which the more intelligent type of reformer will do well to answer: “If…

1 points•Tomte•about 2 months ago•0 comments•
50.

A high-performance and high-level purely functional data-parallel array programming language that can execute on the GPU and CPU.

1 points•mpweiher•about 2 months ago•0 comments•
51.

Jev is a chatbot that only speaks emoji. Type anything, get emoji back.

1 points•skewcy•about 2 months ago•0 comments•
52.

Have you ever written a type that you appreciated so much you still think about it? Like eating a really good meal, where if you try hard enough, you can sti...

1 points•dhruv3006•about 2 months ago•0 comments•
53.

A function's return type is supposed to indicate the kind of data that it produces. Rust's 'n [...]

1 points•signa11•about 2 months ago•0 comments•
54.

Paste your own text, pick a question type, and see the exact request and raw typed answer Jev returns - no parsing, no prose to interpret.

1 points•revexos•about 2 months ago•0 comments•
55.

Rubric-Based Zero-Shot Classification Benchmark: Jev vs Claude Haiku 4.5 vs OpenJev on rubric-conditioned classification, chained decision execution, and exam grading -- with full price tracking. -...

1 points•yididev•about 2 months ago•1 comment•
56.

The list is an output, never an input. Type what you owe in plain words; newdo works out who, when, and how big, and shows you the five things that matter today, with a reason.

1 points•shaanjus4u•2 months ago•0 comments•
57.

The sets-as-trees interpretation of set theory in a dependent type theory with an impredicative universe of propositions validates Zermelo set theory, and it validates Replacement if the type theory has a choice or…

1 points•matt_d•2 months ago•0 comments•
58.
1 points•rankorn•2 months ago•0 comments•
59.
1 points•smalltorch•2 months ago•0 comments•
60.

Type anything. Jev reads it and lights up the countries it most likely points to.

1 points•franciscop•2 months ago•0 comments•

Related topics