Recent submissions

Comment · 3 days ago
they're working on something similar to this, called profiles
Comment · 4 days ago
I wouldn't think of Pittsburgh as a place where car free living is popular. It is in Philadelphia, however
Comment · 5 days ago
yes
Comment · 5 days ago
due to how hard it is to change the networks, I think there's a lot of inefficient route design. if you look at SEPTA in Philadelphia, they're in the middle of realigning a lot of their bus routes for the first time in 60 yrs and ridership has increased noticeably since they started.
Comment · 5 days ago
> Frequency ranged from 7.5 minutes to 15 minutes, so these came often enough that people could just go out and wait for them, not worrying about a schedule'

If only most cities could have this today

Comment · 8 days ago
You mean the Android subsystem for iOS?
Comment · 8 days ago
I wonder how they landed on 16.5
Comment · 9 days ago
I guess they ran out of numbers?
Comment · 10 days ago
My point was that contracts as defined in the standard today aren't evaluated in this manner.
Comment · 16 days ago
The consequence of not being required in the standard is that compilers may not implement it and if they do, they will likely have different implementations/functionality
Comment · 16 days ago
Yes, though that wouldn't be consistent w/ the standard
Comment · 16 days ago
Profiles should (hopefully) rein this in by getting people to start subsetting language features in their codebases
Comment · 16 days ago
> They can be compile time if the compiler can verify them statically (where they become a noop)

This only happens during constant evaluation. For example, the following could be determined statically, but compiles w/o error on gcc

int add_nums(int x, int y)

    pre(x >= 0)

    pre(y >= 0)
{

    return x + y;
}

int result_rt = add_nums(-1,-1); // no compile error

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton