4,464 karma · joined Oct 15, 2011 (15y ago) · 1,098 submissions
https://blog.oxplot.com/
https://github.com/oxplot
comment 4y ago · link · parent
Our great HN community here throws rocks at Tesla and FSD Beta any chance they get. Why in the world would Tesla allow someone whom they employ, to generate bad press while they're still heavily developing a tech. Isn't FSD Beta already not enough negatively covered?
As for firing the employee, WTF Tesla?
comment 4y ago · link · parent
The goal isn't to wait long enough to come up with something novel. That's what research projects are for, and Go is on the exact opposite of the spectrum. If after deliberation, it turns out that a mostly similar solution is the way to go, then that's doing it "right".
Also, the lost productivity that keeps getting mentioned is overblown. The minority who actually need it (a subset of those who ask for it) are, well, a minority but a loud one. I have developed in Go for 8 years. I only ever reached for generics twice and in both cases, copy pasting the implementation in different types added a insignificant effort.
> Go is a very boring language in a sense that there's very little new there
You hit it on the nail! It's boring. That's what you need when you're targeting large distributed teams and want your code base to survive decades and still be readable and navigatable by pros and amateurs alike. You don't want clever or smart. You don't want cutting edge and novel for novelty's sake. You don't want magic. You don't want to have to keep the context of 20 files in your head to understand one line of code. You don't want a syntax that can be interpreted in 10 different ways in different contexts, ... . You want the sweet spot between simple and practical.
Back to:
> Most critics of Go are well aware of its history and purported design goals.
Your comment about Go being boring and its lack of novel features, is clearly demonstrating that you've either missed or misunderstood the design goals. And many similar comments on other parts of the language from others I've interacted with is what I was basing my parent reply on.
comment 4y ago · link · parent
If you read the history of Go, the whole point behind its creation (as with many others) was to start with a clean slate so new norms and ways of doing things could form, in service of large distributed teams and long term maintainability. Lack of generics, as unrelated as it may seem, is actually the result of the those and other goals. Specifically, Go authors avoided complicating the language, runtime, and compiler early on and thereby avoided negatively affecting long term maintainability of both the language and the code written for it (v1 compatibility promise) before having a good grasp of how generics should be implemented in this new language or if it should be at all. Copying the so called tried and tested implementations from existing languages would make little sense as generics are so intertwined with the rest of a language.
TL;DR approach learning programming languages like you would approach learning a new natural language with the purpose of living among its native speakers.
304.
Archive.today returning bogus IP to Cloudflare Resolvers(community.cloudflare.com ↗)
14 points · by oxplot · 4y ago · discuss
comment 4y ago · link · parent
Interestingly, only my landline broadband connection blocks them (Aussie Broadband), not my mobile provider (Telstra, Optus)!
EDIT: contacted Aussie since it looks like they've forgotten to unblock it.
EDIT: Not related to blocking - turns out archive.today returns invalid IP when queries by Cloudflare DNS resolvers (which I use): https://en.wikipedia.org/wiki/EDNS_Client_Subnet#Controversy...
306.
Allow people to reach you without revealing your contact information(mypingtag.com ↗)
1 points · by oxplot · 4y ago · discuss
comment 4y ago · link · parent
However, it need not be harder than it should be if manufacturers are not hostile towards 3rd part repair. That’s job of the government to mandate it. Most manufacturers want control over their processes to ensure, in the least, the repair is done right and it won’t end up as bad press and reputation damage due to someone else’s screw ups.
EVs are in their infancy. So don’t expect perfection just yet. Give it a few decades and regulation will catch up.
comment 4y ago · link · parent
This is a good example that what people do isn't necessarily what they appreciate or like. It's just a norm. Whether it's positive or not is quite a different aspect.
comment 4y ago · link · parent
I still have the pacman logs from the first package installed. It has traveled to three different machines, three filesystems (ext4, btrfs, xfs), two boot loaders (grub, efi) and two desktop envs (gnome2, mate+compiz).
I really can't imagine using anything else. AUR along with simplicity of the package source format and cleanliness of everything in general, makes this the perfect OS for a pragmalist like myself.
comment 4y ago · link · parent
comment 4y ago · link · parent
[1]: https://github.com/oxplot/raspberrypi-archlinux-installer
comment 4y ago · link · parent
comment 4y ago · link · parent
On a different note, perfectionism can be a symptom of procrastination. It requires much less will power to fine tune an existing thing, than it is to start something new or work through early steps. If this is the case, then apply the usual anti-procrastination techniques: vow to put X minutes a day into a project in order to make it a habit and get the ball rolling; identify obstacles that are creating friction; re-think the design and simplify; breakdown the task to make it less intimidating; etc.
comment 4y ago · link · parent
- iOS and Android both have screen time features to show you a banner when you've used an app for longer than a set time. This is a good soft block to start with.
- Auto logout after a set time. Having to login is one extra step that may deter you from accessing a website. This can be done with browser extensions.
- Auto delete apps after a set time (this is possible with MDMs). Again, having to install an app would be a big hurdle next time you want to sit back and scroll through clips.
- Throttle speed of a website - this one's a little brittle as you can quickly switch to a faster network, usually your mobile connection.
comment 4y ago · link · parent
Perhaps your definition of hobby is different to mine, but hobby projects are exactly the kind you can abandon in a heartbeat. No long term customers, no guarantees, no obligations. In fact, we hear about countless HW and SW projects being abandoned left and right, right here on HN on regular basis.
> For that time cost, I want to work on a product that could go into production and pay for its own maintenance.
Hobby and high volume production aren't necessarily mutually exclusive.
I wanted to build a custom board to use USB-C power in my projects. Except the cost of a dozen boards assembled was quite high. So I made a thousand or so to subsidize the cost of development and production for myself. The chip I used went out stock (global chip shortage related) but until it did, my "hobby" project paid for itself and actually made me a small profit as well.
comment 4y ago · link · parent
Whether it's a hobby project or a high volume production project, you don't want hundreds of hours of your time spent developing for it to go down the drain. In case of a hobby project, it probably means the one or two units you made are all that you're ever going to make. In case of a product you built in high volumes, it means a large gap in sales and lost revenue while you re-do the firmware for a new chip.
comment 4y ago · link · parent
Just finished putting https://subzo.com.au up with pure Golang, vanilla jacascript and CSS. Works well with SEO, it’s fast, easy to debug and understand and doesn’t require me to touch node!
comment 4y ago · link · parent
Gradual upgrade, as in you can update a single file to use the next major version. Not sure what you’re on about.
> hundreds of files which needlessly got changed
If you have hundreds of files and upgrading to a new major version all at once, you’re creating the exact risk that Go is trying to mitigate.
comment 4y ago · link · parent
> this is redundant because the local go.mod file already has the semantic version of all dependencies tracked
The whole point of having full version path in each file is to allow gradual upgrade to a new major version/a completely different package. Listen to Russ Cox go over this many times.
> Users of packages aren’t alerted about new major versions
Fair point.
> For the client to update, it’s not a simple path change in go.mod
It's a simple command:
gofmt -w -r '"github.com/logrusorgru/aurora" -> "github.com/logrusorgru/aurora/v3"' ./
> Maintainers should be able to increment the major version via Git tags.
Go is not tied to git or any other single SCM system. They can however be pragmatic about this.
> I get why these rules exist, and I think they are great for large open projects
You either don't, or you think that smaller/trivial project's requirements somehow take priority over larger ones. There are plenty of toy/application specific/scripting programming languages built to be used to write a few hundred lines or glue things together. Go specifically and repeatedly states that it's aimed at large, distributed and long term projects with lots of changes over time and many contributors. You know that going in. So you're criticizing (poorly I might add) the very notions that this language is built upon! This is like criticizing an industrial kitchen equipment for not having pretty colors and curvy shapes to match your home decor.
comment 4y ago · link · parent
Large camping fridges are as close as I have seen, but I'm sure someone's thought of one for domestic use.
As for practicality in the kitchen, I can imagine a design where you have multiple medium sized fridge drawers. Once pulled out, you can open their top lid and access the content. This way, you don't have one deep container, but rather, multiple shallower containers. For efficiency, a single compressor can feed all of them.
EDIT: actually I've seen freezer drawers - you just need to dial the cooling down a bit.
Another idea: Vertically long rectangular compartments that can be pulled out individually. Essentially a whole bunch of vertical drawers of different sizes, with meshed walls to allow air to pass through them.
Another silly idea: a horizontally mounted ferris wheel
comment 4y ago · link · parent
There is a big difference between feeling suffocated in your own home where no one else is involved vs. among people you could potentially be putting at risk.
comment 4y ago · link · parent
I never do because I feel suffocated.
> see a doctor
Thanks for the unsolicited advice. I in fact have and have been told not to wear clothing that makes me feel suffocated.
> the burden of wearing a sweater is just incredible in some of these comments
Your lack of sympathy is equally incredible