Better HN
topnewbestaskshowjobs
Log inSign up

makecheck

12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions

Submissions

comment 6y ago · link · parent

Unfortunately working with dynamically-allocated buffers is still a thing; adding array syntax just favors one form of size specification without solving the other case.

Although C is usable on many types of hardware, interesting things could be done, e.g. on desktop OSes if certain hardware-specific extensions were made.

One of the things I wish we could do with our now-absurdly-large pointers (64-bit) is to reserve a handful of bits for other information such as the size. Sure it means we can’t store anything at location 2^64-1 but it wasn’t that long ago we only had 32-bit pointers and the 33rd bit is twice as many addresses all by itself so I think we can lose a few.

For example, if all allocations were rounded up to buckets of a certain size, the precise byte count would not need to be encoded in the pointer (just the number of buckets, requiring fewer bits). There could be a couple bits to give pointers a type for other interesting scenarios, e.g. perhaps a pointer identified as an “immediate value” that isn’t actually allocated at all, and it is “dereferenced” by treating its “address” as the “stored” value. There could even be a couple of bits to track use of common allocators (it would be so nice to simply know that a pointer was allocated by "malloc" vs. "new" for example).

In high-level languages, then, the syntax change would be not to identify arrays specifically but pointers with encodings that are “complete” (e.g. "char const complete*" or something), covering both stack arrays and dynamic buffers.

comment 6y ago · link · parent

While iOS 14 will help somewhat (App Library to gather things), I agree that one app per game is a big ask for streaming. Furthermore, I can just imagine a lazy Electron-type implementation making each “wrapper” steal much more phone space than it has any right to.

comment 6y ago · link · parent

Lights aren’t exactly cheap either way; even years ago they would be about $100 a pole just for the light, modern LED ones are about that [1] and cities can have thousands of them [2]. For example, the 250,000 lights in NYC at $125 per light (without even considering installation) would get you about $30M.

[1] https://www.edn.com/weighing-the-costs-of-led-street-lights/

[2] https://www1.nyc.gov/html/dot/html/infrastructure/streetligh...

comment 6y ago · link · parent

Until it stops clearly rewarding scammers, I cannot support subscriptions in any way. From the very start, these criminals figured out some great ways to trick people into auto-renewing subscriptions at exorbitant rates for garbage apps [1]. I especially love how they reached the “Top Grossing” lists (I sure never have...must be nice to not have any morals).

[1] https://techcrunch.com/2018/10/15/sneaky-subscriptions-are-p...

Also, I just plain want to make things that lots of people can enjoy. Subscriptions certainly limit your audience so why is that better (and why should that be the only option or even the preferred one?).

I know developers who asked for this in 2007 but can we please have “free trial, pay at end of trial” and “paid major upgrades” as standard, store-supported options, at long last? There was never anything wrong with these models and they are also great ways to make a living.

comment 6y ago · link · parent

Yeah, this is crazy: Settings -> Privacy -> Location Services -> (ALL the way to the bottom of the list, past all apps) System Services -> Location-Based Apple Ads. Oh, and if you have text size increased by any amount, “Ads” doesn’t even appear and it’s just “Location-Based Apple...” (on or off).

The harder something is to find and disable, the shadier it seems.

comment 6y ago · link · parent

This is a great idea but did they not think 5 minutes before naming something “GitHub Star” when GitHub profiles already have Stars that are different?

They should probably at least name this “GitHub All-Stars” or something that doesn’t sound exactly like the existing meaning of Stars.

comment 6y ago · link · parent

Many workarounds undoubtedly exist. The question is, why are any of those things necessary?

It took literally 2 minutes to upload the update for immediate release on Steam (previously set up / approved). [...Oh, except it didn’t, because nowadays Apple makes me wait 15 minutes for their unnecessary Notarization upload to complete. 17 minutes is still faster than App Review though.]

I want to spend my limited free time on things I enjoy, such as actually making software. And at a certain point, it does not matter if there are 5 different workarounds for Apple-imposed problems; what matters is that Apple-imposed problems drain an unreasonable amount of free time and energy for insufficient benefit.

comment 6y ago · link · parent

Well the worst part was, their own Human Interface Guidelines even say:

“These options are usually visible, but can be hidden as a group, such as......, or individually disabled, such as when a full-screen app can't be minimized. ...... A title bar should be visible, but can be hidden in an immersive app like a game.”

Either way, this wouldn’t be in the top 1000 reasons for someone to request a refund for a game on the store so why is Apple even concerning itself?

comment 6y ago · link · parent

I was once rejected because my one-window app didn’t have a Minimize button...for a game...that primarily runs in Full Screen. Other rejections were at least as pointless, every time leaving a bad taste in my mouth and making me wonder why they wasted as much time as they did.

The breaking point for me was when the reviewer refused to allow my minor update in because it “crashed” in an unreleased minor OS update that I literally could not acquire at the time. I removed my app from the Mac App Store the same day and haven’t been back.

It is a petty, pointless, and infuriating experience, which wouldn’t bother me so much if it wasn’t abundantly clear how much trash still makes it into the store and how inconsistent they are. I recommend that everyone use the “suggestion” box to suggest removing App Review entirely.

comment 6y ago · link · parent

I’m reminded of time learning a new language, and how little it takes to completely change the meaning of something.

Imagine if you thought you understood 90% of what somebody said to you but you didn’t catch the word “not”; you would have exactly the wrong interpretation. Or what about skipping a modifier like “slightly” or “significantly”? (And don’t even get me started on sarcasm or other things that may not be detectable to all.) Google’s summaries, or any auto-summarization, risk inventing a new conclusion that was never part of the original.

This is a cornerstone to critical thinking as well. If you spend your time trusting one-sentence tweets and other shallow writing, are you also asking yourself what hasn’t been stated? For example, I could say: “Engineers quitting Google amid latest executive actions”; the reality might be “it was exactly two engineers”, “their reasons for quitting were unrelated”, etc. It is extremely easy to create misleading summaries.

comment 6y ago · link · parent

Based on that thread, the last time they did it was in May, and the latest was yesterday. Furthermore, they’re promoting a sneak peek so they could have easily waited to promote something that isn’t even here yet. The timing makes it pretty clear that they’re just trying to beat up Epic, and it’s an immature thing for a company to do.

comment 6y ago · link · parent

Of all the things about this, the fact that the Fortnite competitor PUBG is now being “featured” by Apple just ticks me off so much. Talk about being petty. Are there school-aged children running the App Store now (or the executive suite?).

I realize Apple has the right to decide who they feature but come on. Being featured is important, it’s a big deal and it can make a serious difference to any developer’s income and notoriety. The fact that Apple can just deposit something at the top of the list because they’re in a bad mood really says something about Apple: I don’t know, maybe that they’re a bit isolated and immature about this whole thing?

comment 6y ago · link · parent

My favorite is when I use control-L to clear the screen on a terminal and hit Windows-L by accident to lock the entire laptop.

comment 6y ago · link · parent

It’s interesting he mentioned media such as ROMs because I often wish I could force the system to pretend that certain things really are in ROM: “I don’t want you to touch them, even if you otherwise would”.

Of course, ridiculous bundling of software features makes any partitioning difficult.

A recent macOS update is a good example of ridiculous bundling: half the release notes (and the first notes listed) for this “OS update” were for “Apple News+”, and the other actual OS update notes — that looked infinitely more important — were left to scroll out of view. To hell with Apple News+!! Features of an application (that I do not even subscribe to) should never have become part of the OS, much less updated through first-class bundling with fixes to the OS itself!

comment 6y ago · link · parent

I see nothing wrong with returning to older models of advertising: you buy simple ads (like pictures or text on web sites, or audio during podcasts), with zero scripting attached, and no video. And you track them in obvious ways (e.g. special codes at checkout, or you simply ask “how did you find out about us?”), which still gives a clue which ads were effective.

The entitlement of these ad companies to their obscene revenues and invasive methods is insane. Facebook’s “disruption” is hardly a problem I care about. Maybe the Internet will finally be usable again if we have a little more disruption.

comment 6y ago · link · parent

This is possible if you use "xargs" (which runs a command multiple times with different subsets of the arguments), although it is most useful if commands are aware of null-separation (e.g. old-style "find ... -print0 | xargs -0", before "find" added the "+" option).

comment 6y ago · link · parent

While it takes significant extra effort, it’s more robust to carefully decompose patterns into exact lists of files that can be reviewed (or use "find"), and this has saved me a couple of times.

For example, expand wildcards into a separate list of files that can become controlled commands ("rm -f A/file1", "rm -f A/file2", "rmdir A", ... instead of "rm -Rf ..."). This way, if directory "A" contains anything you didn’t expect, the "rmdir" fails at the end; and, someone can review the list of proposed files to be deleted before you run. Oh, and instead of having that sinking feeling of "rm" taking “too long” to run, your command is merely in the process of constructing a list of 1000 unexpected files instead of blowing away half your disk with shocking efficiency.

Also, file lists are pretty useful when you need to make minor edits (e.g. sometimes it’s a lot easier to find and exclude a few files from a list that you don’t want to touch, as opposed to describing those in a wildcard or search).

Depending on the task (and assuming no filesystem caching) it can be faster to gather up a list once and pass the composed list in to a whole series of commands. This is also good if you technically want the list to remain frozen even if the filesystem is changing underneath you, e.g. new files being added somewhere in the tree.

comment 6y ago · link · parent

What ultimately made me pull out of the Mac App Store was the fact that publishing with Apple meant “app with customizations to accommodate stupid rules”, and $EVERYWHERE_ELSE meant “upload and be done with it”. If you haven’t checked lately, the Mac App Store is a pathetic ghost town for the most part.

On iOS I guarantee that if the App Store had even one alternative, many apps would do the same and bail on Apple, and you’d see a similar ghost store.

Also, since Apple loves to compare its grand scheme to how physical stores used to behave, let’s examine that: there isn’t a single physical store that demands to have complete control over everything in the boxes on their shelves. If you open a product box and it contains a card with information, such as a link to the company web site or other stuff, then that’s what you get. If apps followed this sane model, Apple would just let apps put whatever they want “in the box”, including sensible things like INFORMATION about account sign-ups and other products, and links.

comment 6y ago · link · parent

One of the things that frustrates me about apps/web is that most people have no idea what individual apps/sites are “costing” them. Without additional tools and watching Cellular Data settings like a hawk, stupid things can slurp up your data plan.

Entire books could be sent to people in a sane format but a 3-line web page wrapped in garbage takes dozens of megabytes? An app that does “very little” is consuming 100 MB in no time?

Worse, no one seems to want to “pay” for apps anymore (demanding everything be free) but then they blow $10 on data because their “free” app is routinely shoving unnecessary amounts of data to their device.

We need some hard limits on data; if I give your app 100 K, you shouldn’t be able to use any more. Furthermore, the default data limits should be very low (with big scary dialogs appearing when apps request more) to discourage lazy designs that offload their true costs onto unsuspecting consumers.

comment 6y ago · link · parent

I’m not sure how we’ve learned to accept “I am altering the deal” from tech companies just because they have the ability to change things remotely.

I mean, what if a furniture company just decided to break into your house, reupholster your couch and remove some of the pillows? (Or I suppose, install a recording device on the bottom?)

comment 6y ago · link · parent

I feel like I can deal with most things but “mandatory training” drives me nuts. At one company after another these are always over-produced things that impose way more distraction and time than they need to (all video/audio with little to no text transcript, stupid things like the inability to even click “next” until the unnecessary narrator finishes reading you some slide, etc.). And then they have serious technical lackings like only working in certain browsers or (my favorite) having assessment tests so broken that you literally have to be careful how you type something to avoid correct answers being deemed “incorrect”. It’s always a waste of money and time, at each job I always sent survey feedback telling them this, and no company has ever changed how they do it.

comment 6y ago · link · parent

Even if no UE-dependent games are removed now, they’re all at risk because Epic would no longer be able to fix any bugs for them, or maintain the engine. And, Apple has forced maintenance on developers quite often; it’s only a matter of time before some platform-breaking boundary must be crossed again, which none of the UE-dependent games would be able to manage without Epic’s involvement.

comment 6y ago · link · parent

I think the worst part of this letter is the date; over 5 years ago and nothing is really different in any of the areas raised.

Yet the same execs that were CC’d are in charge. I’m glad they had some great “thoughts” on the matter.

comment 6y ago · link · parent

This was in a category of good software that doesn’t exist much today, and you just know it when you experience it.

Apps like this were filled with features that don’t fit into regular marketing bullet points but were evidence of care and attention. I used the graphics module all the time and it had some great ones. Example: I would select an object, copy it, paste it, then immediately move the pasted object; then, when I pasted the object a second time, ClarisWorks moved the new one for me by the same relative amount. That turned a tedious layout task into exactly what I wanted, in seconds.

And of course “any kind of document frame anywhere” was unbelievable at the time.

Today, when I think of just the time I spend with something like the fiddly and frustrating text selection mechanism on iOS (that I used to write this comment), we have lost something as an industry. Software can be a craft, not just something you slap together.

comment 6y ago · link · parent

Safari did exist on Windows, up to version 5 or so; was discontinued a couple years ago.

comment 6y ago · link · parent

In many languages you can do whatever you want with parameter names because they’re an implementation detail. In Python it’s always been frustrating that perhaps a less experienced developer can rename a parameter “inside the function” and break calling code that happened to refer to the name. (And since it isn’t static/compiled, how long after the change will you see this break?)

comment 6y ago · link · parent

I’ve wondered why we continue to display URLs as painfully-long single lines of text. Tradition? Why is this helpful anymore? (e.g. On an iPhone it’s not easy to edit the end of a URL.)

If it’s so damn hard to display full URLs on one line, let’s display them on several lines (at least after tapping on them), broken on dots to wrap. Spaces aren’t valid in URLs anyway.

comment 6y ago · link · parent

This is one of the games Apple likes to “feature” regularly. They basically strongly encouraged people to buy this game one week, and yanked it from the store the week after. The game “owners” should be livid.

comment 6y ago · link · parent

Despite the “fix”, it’s hard not to worry about the app ecosystem when:

- There exists a way outside user control to auto-kill software with no apparent recourse. (This time it was one set of apps but what prevents an automation bug from bricking a bunch of other software for at least a few hours?)

- The explanation to the user errs on the side of “developers bad, Apple good” (disabled software “may damage your computer”, not “Apple may have screwed this up for you”). That’s at least unhelpful for solving the problem, if not a lie.

- Like many things Apple ruins for developers, they’re perfectly happy to let users destroy your app rating and send all criticism to the developer and lean on the developer for all tech support.

There really needs to be a way for users to understand Apple’s role in all these things. App developers are not directly responsible for everything you experience.

1
8910
98