Better HN
topnewbestaskshowjobs
Log inSign up

setpatchaddress

1,033 karma · joined Feb 1, 2015 (11y ago) · 539 submissions

Submissions

comment 5y ago · link · parent

Could not disagree more about goto. Small programs always turn into larger ones. And what you have at the end if you're not from the beginning using practices appropriate for larger programs is spaghetti code.

I'm not criticizing it in context -- a lot of this code dates back to the mid 80's if I'm not mistaken. But always write new code using scalable idioms.

comment 5y ago · link · parent

You can't shave if you commit a crime? Is this a New York colloquialism?

comment 5y ago · link · parent

Yes. And just to be clear, this was a problem in SF well before the pandemic.

comment 5y ago · link · parent

SF’s homeless problem is out of control in a way that it isn’t in most large cities. You can’t say “that’s just life”.

comment 5y ago · link · parent

For the graphically oriented, TextMate has had columnar cursor and clipboard operations since 2005, IIRC, and recent versions of Xcode also have a good implementation.

comment 5y ago · link · parent

This is a fine thing that can work for some people and not for others: it's really hard to live a decent life on a single (tech!) income in Silicon Valley if you're not already wealthy, and young people may not have enough saved up to take a year off.

comment 5y ago · link · parent

The Trump presidency forever cured me of the last vestiges of the idea that government would be capable of recognizing the importance of something like this and authorizing something like an assassination as a remedy.

Which is mostly a good thing, to be clear.

comment 5y ago · link · parent

One of the problems is that hashtag usage evolved into a form of signaling for emphasis (#your-slogan-here) instead of a useful way to tag a topic, to the extent that it can read as obnoxious if you do it at all in a serious way.

Another is that it's another moderation headache. Anyone can insert a hashtag for any reason, so anyone will. If you don't police it, it becomes useless; if you do police it, it becomes heavy.

comment 5y ago · link · parent

> The state of California is horribly mismanaged

Compared to what? Texas?

Edited to add: Wikipedia:

> The economy of the State of California is the largest in the United States, boasting a $3.2 trillion gross state product (GSP) as of 2019.[9] If California were a sovereign nation (2019), it would rank as the world's fifth largest economy, ahead of India and behind Germany.[10][11]…

comment 5y ago · link · parent

Why would it be a benefit?

comment 5y ago · link · parent

"Grand Central Dispatch (GCD) was introduced and there we NO NEW FEATURES"

run that past me again please

comment 5y ago · link · parent

This is disinformation.

https://www.usatoday.com/in-depth/news/2021/02/01/civil-war-...

https://nypost.com/2021/01/16/aoc-slams-facebooks-mark-zucke...

https://www.cbsnews.com/news/twitter-blocks-qanon-accounts-c...

comment 5y ago · link · parent

Sideloading is Android terminology, isn't it? What does that have to do with Apple?

comment 5y ago · link · parent

Sure, the lineage of declarative UI is pretty long. I'm aware of Windows resource files and the Mac's resource files that inspired them; there may be earlier antecedents on 8-bit micros.

SwiftUI provides a fundamentally different way of thinking about UI composition and managing data flow in your app. Much of the GUI logic simply disappears. Syntactically and functionally, it seems like something structured like it would be a great fit for a cross-platform Lisp UI framework.

comment 5y ago · link · parent

Thank you for this overview -- the article itself doesn't seem super useful unless you already have this context.

I glanced at CLIM, and it's very much still traditional verbose, imperative GUI code. Someone should really take a look at doing a Lisp version of the SwiftUI concept. It seems to be made for s-expressions.

comment 5y ago · link · parent

This was one reason I thought programming the classic Mac was great training — the nature of the memory manager, where most data structures were double-indirected pointers and the inner pointer could move at will -— you had to understand pointers or you’d never be able to produce a stable program.

Edit to add: and yeah, I’m also not sure it’s relevant outside OS-level programming, which most people never get near at this point.

comment 5y ago · link · parent

> Pure C99. No external tools are required; datatype99 is implemented using only preprocessor macros.

And sure enough, the code is unreadable and unmaintainable as you'd expect.

You can build Boost out of C99 macros. There's a really good reason why you shouldn't.

comment 5y ago · link · parent

This is definitely not the Buddhist view, which, clumsily reduced, is that you want to root out the cause of the anger, which is not actually external to you. (i.e. Your buddy doing something didn't make you angry; you chose at some level to get angry when your buddy did something.)

There is no exception for "good anger" or "motivating anger".

At least, I'm pretty sure that applies to all strains of Buddhism, but there are many, so YMMV.

comment 5y ago · link · parent

I remember being told in 1996 that Java would eventually be faster than C++ thanks to JIT compilation and certain language features (like `final`)...

(Edit) Oh, and discovering that AWT was useless for just about anything.

comment 5y ago · link · parent

tangentially, your point about meaningful shades/colors breaking the design for non-color-blind people situationally is a great example of the need to always keep accessibility in mind

comment 5y ago · link · parent

I know people who were very upset that Mac OS X required login/password. The "personal" part of "personal computer" was important to some people.

comment 5y ago · link · parent

Available evidence suggests otherwise.

Tesla and SpaceX probably wouldn't exist if not for government bootstrapping. https://www.latimes.com/business/la-fi-hy-musk-subsidies-201...

Further back, modern computing / internetworking wouldn't exist without military and DARPA cash from the government. Read any book on the history of these.

comment 5y ago · link · parent

Just to answer the original question: that's an example of something Apple handled -- no external AV required.

comment 5y ago · link · parent

Most RISCs would fail the "instruction only does one thing" test. ISTR there were instructions substantially more complex than FJCVTZS in the PowerPC ISA.

I think it's time for a Mashey CISC vs RISC repost:

https://www.yarchive.net/comp/risc_definition.html

comment 5y ago · link · parent

You are being incredibly naive to think that the people in question are capable of changing their minds on this particular topic at this particular time.

comment 5y ago · link · parent

s/social media/the web/

comment 5y ago · link · parent

it was somebody else's account. Also, see @foone's thread here:

https://twitter.com/Foone/status/1346924327996772354

tl;dr: the government has appropriate computer security in place to prevent this sort of thing, and it's not clear what the deal was with that particular computer.

comment 5y ago · link · parent

Lack of CD-ROM was a gigantic problem, though. Doesn't matter if you have better hardware if you can't fit all the content. Square moved to PlayStation for specifically this reason.

comment 5y ago · link · parent

What would your goal be? I think locking a modern, general-purpose OS to a small number of cores would artificially constrain performance, assuming a reasonable scheduler.

comment 5y ago · link · parent

This ^^^^ absolutely stunning on a PS4 Pro.
1
678
18