News for hackers. Stuff that matters.

strkek

Re:Luck in Wesnoth: Rationale (2008) on Tuesday June 26, 2018 @08:58AM (#17400183)
> Without the in-game ability to start over after making a mistake, you're forced to deal with whatever the game throws at you. No excuses, no rationalizations.

I found "Alien: Isolation" to be amazing in this aspect as well. You can only save at very specific points in the map (no quicksave), and in many situations where you might expect the game to be paused, like when saving progress, it's really not.

Makes you think twice before doing anything.

It's like the devs of Clang and GCC suddenly joined to define what "C20" means but bypassing ANSI and ISO processes.
I can perfectly see this implemented without breaking backwards compatibility, similar to how we have usermodes for "connected via SSL" and channel modes for "requires SSL".

It doesn't require breaking backwards compatibility because, as far as outdated clients are concerned, they just "can't enter a channel because they lack a required usermode" or "can't send a message to some user because they lack a required usermode".

We only need the spec to define "some way" to do it so clients can announce their support and servers know what to do with the supporting clients.

Then it's up to IRC daemons to provide some modes for it.

And federated too, if I may add.
Re:BitTorrent is selling for $140M to Justin Sun and Tron on Tuesday June 19, 2018 @05:35PM (#17350456)
Aren't they basically the ones controlling the protocol specs through the BitTorrent Enhancement Proposals (BEP)?

(Honest question.)

If you begin this, please leave a GitHub link so I can follow it :)

EDIT: Or a link to the repository, in case it's not hosted on GitHub.

Re:Windows NTFS Tricks Collection on Wednesday June 13, 2018 @06:19PM (#17307480)
Last time I checked you could create a directory with a name "like:this" from Linux or something, and Windows would display it but not allow you to access it in any way.

Have they fixed this? (Just pure curiosity)

Re:Dissolving the Fermi Paradox on Wednesday June 13, 2018 @03:10PM (#17306091)
As long as humans continue to be like we have been so far, i.e. with the mentality of destroying our own planet and not caring about it, or committing crimes like kidnapping, etc... as long as there are individuals like that, every time we humans learn something new, things will inevitably turn way more scarier.

Whether it's colonizing other planets or making a full-dive VR; just thinking about the time when we can do any of these things gives me a headache.

Re:Chatbots were the next big thing: what happened? on Friday June 08, 2018 @12:23PM (#17266965)
I wonder if this app has a drawer.

swipes to the right

> Message archived.

No wtf.

undo

Guess it doesn't.

Worse of all is that this abbreviation must have come from someone who had no idea what cryptocurrencies are; someone who thought it was "magical WoW money but better".

Because I just can't wrap my head around the fact that anyone who knows what a cryptocurrency is, is somehow unaware of all the massive prior art indicating that crypto=cryptography.

It's like calling light bulbs "glowing pears" (jk, I love the German language <3).

Re:GitLab is open core, GitHub is closed source (2016) on Wednesday June 06, 2018 @12:32PM (#17248547)
Chill.

It's both a user and UX problem. It's like when some part of a website's functionality is only available through Flash.

You know some (nowadays "most") people will have it disabled, and you're indirectly saying that you don't care about those users at all, which is not a bad thing.

It's the users' fault for not enabling Flash, sure, because they're not your target audience. But whether you provide a good UX for your non-target audience or not, it's your fault. And again, you're not obligated to accommodate those users, but that doesn't change the fact the you could give them a better UX but chose not to.

So, from this you can know that the users GitLab cares about are only a subset of the users GitHub cares about.

Re:Show HN: Transity – Plain Text Accounting on Tuesday June 05, 2018 @06:34PM (#17242687)
The article doesn't say which version, though.
Re:GitLab is open core, GitHub is closed source (2016) on Monday June 04, 2018 @06:34PM (#17233256)
Eh, I think they were talking about the UX for people that have JavaScript disabled, not about the JavaScript language.

To me it sounded more like "I can browse GitHub without JavaScript just fine, but GitLab doesn't even display the README, even though I'm using the exact same settings".

Re:Data serialization on Monday June 04, 2018 @06:11PM (#17233086)
Obligatory link to the "YAML sucks" repo:

https://github.com/cblp/yaml-sucks

If you ignore the flame-inducing title, it's just a table showing how different implementations parse YAML input in very different ways.

Re:One year of C on Saturday June 02, 2018 @04:38PM (#17216245)
> btw, did you notice how there are hardly any books, conferences or discussions about C despite being a fairly popular language?

Oh, yes. When I wanted to fiddle with OpenGL (and later SDL), I was baffled to find that absolutely everything documentation-wise was for C++.

EDIT: Sorry, "documentation" was probably the wrong word to use here. I meant "learning resources".

Re:Actix: a small, pragmatic, and fast Rust web framework on Thursday May 31, 2018 @11:05AM (#17196826)
Most projects use buzzwords like that though.

- Safe! - Blazing fast! - Powerful! - Elegant! - Shiny! - Modern!

You know, marketing stuff that tells you absolutely nothing about the software itself but is required to fill space on a website.

The thing is, a boring "Benchmarks" heading in the README doesn't get you as many GitHub stars as a "Blazingly fast!" heading+icon. And you know how addictive Internet Points can be.

Re:Winds 2.0: It’s Time to Revive RSS on Wednesday May 23, 2018 @10:11AM (#17134300)
I think it's a situation sort of like with SSL and TLS, where the former term implies the latter. I mean, it's not rare to find people using the term "SSL Certificates" even on TLS-only setups. Also:

https://wiki.openssl.org/index.php/Libssl_API

> libssl is the portion of OpenSSL which supports TLS

It's for TLS support yet they call it "libssl".

So yeah, you can just mentally replace "RSS" with "RSS/Atom" and most of the time it'll be fine.

Re:Vim 8.1 on Friday May 18, 2018 @02:37PM (#17103850)
You'd still be able to use `C-[` though.

(And I actually use it in Termux)

Re:Vim 8.1 on Friday May 18, 2018 @01:50PM (#17103442)
> If you're frustrated, simple insert mode (`i`) is all you need to get back to your comfort zone.

Also, something I wish I knew back when I was learning is `:set nonumber` to turn off the gutter and be able to copy things with the mouse (`:set number` turns it back on).

If I had known this, my experience wouldn't have been as bad as it was until I learned to use the registers.

There's definitely something about forums that can't be found in social networks. I don't know what that is, but I know it's very unlikely that I'll have as much fun as in those days.

Not sure if it's because I was a teenager back then and perceived the internet differently, but nowadays everything looks way too "serious".

Re:How to start a Go project in 2018 on Monday May 14, 2018 @08:41AM (#17064901)
> In the end ~/go doesn't look a lot different than the @INC path that points to something in your home directory, or /usr/include, /usr/lib, and /usr/bin in a pure C system.

Well, yes and no, and that's the only thing I don't like about GOPATH: that your source code is not in GOPATH, but in `$GOPATH/src`.

I'm not against GOPATH per-se because I'm already used to other PATHs; I'm just against it not behaving like those other common PATH variables, like PATH, LD_LIBRARY_PATH, PYTHONPATH[1], etc. GOPATH introduces intermediary directories (src, pkg, bin), instead of going straight to the point and being only for source code.

I mean, there's `GOPATH` and also `GOBIN` which is just `$GOPATH/bin`. IMO it would make much more sense for GOPATH to be only source code, GOBIN to be only executables, and something like GOPKG for the current `$GOPATH/pkg`.

[1]: Yes I know venv is a thing, I'm just mentioning PYTHONPATH to illustrate my point.

Re:How to start a Go project in 2018 on Monday May 14, 2018 @08:28AM (#17064828)
I made[1] a zsh hook some time ago that allowed you to have per-project GOPATH.

At the root of the project I just have to do `echo 'github.com/username/package' > .gopkg` and after that, for everything I do under that directory tree, GOPATH will be automatically set to something like `export GOPATH="$(dirname .gopkg)/.gopath"`.

I don't use zsh anymore though.

[1]: https://gist.github.com/strkek/294c2f5e6fe94b8303b5121266b27...

Re:My struggle to learn React on Wednesday May 09, 2018 @03:44PM (#17033246)
Same here, but in my case when I need that I usually go with Mithril.js[1]. I found it by chance and instantly liked it. It's a shame that nobody seems to know it.

[1]: https://mithril.js.org/

Re:Python startup time: milliseconds matter on Wednesday May 02, 2018 @05:55PM (#16981493)
Imagine my confusion back then.

I could push fine to BitBucket if I used Python 2 version locally, and same for my VPS if I used the Python 2 version both locally and remotely.

But as soon as I touched the Python 3 version of Mercurial the pull/push problems began. I don't recall the exact error and maybe it's fixed now (this happened like 6 months ago), but I don't think I'll give it another try for some time.

Re:Python startup time: milliseconds matter on Wednesday May 02, 2018 @02:04PM (#16979609)
IIRC CPython devs reject performance-related patches if they cause the code to become "less readable".

>> I believe Mercurial is, finally, slowly porting to Python 3.

I just gave up on Mercurial since it didn't let me push to BitBucket nor to an Ubuntu VPS via SSH.

For better or worse, Git just works.

Re:Show HN: How Secure Is My Password on Monday April 30, 2018 @06:39PM (#16963119)
> Also, if you five away what a strong password consists of (case, length, characters, symbols) then doesn't that make it weaker because you give bots/attackers a pattern to follow?

I don't think it changes anything at all. Attackers won't ignore "dolphins" just because a meter says it's weak.

Unless it's an actual limitation of the site where you're signing up, in which case the culprit for the reduced search space would be the website for such password limitations, not because the password strength meter.

Re:Announcing NPM 6 on Tuesday April 24, 2018 @02:26PM (#16915223)
I'm very curious what will they do when Python 2 reaches EOL. Will they keep depending on deprecated software?
Re:Go gets preliminary WebAssembly support on Friday April 13, 2018 @06:57PM (#16834643)
As weird as this might sound, I see WebAsssembly more like a portable shared library format than a JavaScript replacement.
Re:Go: The Good, the Bad and the Ugly on Friday April 13, 2018 @11:43AM (#16831074)
Well, one thing that Cargo got wrong is forcing you to clone a full git repository when only the latest commit is relevant.

IMHO it should allow me to either use a shallow clone or use crates.io's API directly.

Older »