Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

comment 9y ago · link · parent

And, oxymoronically, plain, old long.

In particular, everything but MSVC treats long as 64 bits, but MSVC treats it as 32 bits for backwards compatibility.

However, I haven't used int or long or long long in ten years or so. Thanks to stdint.h support finally making its way to all platforms, it's exclusively sized types like int32_t and uint16_t for me.

comment 9y ago · link · parent

The reason this works the way it does is that rust does not provide any cross-type arithmetic operators; as in you can't multiply a signed int and unsigned int or a float and an u8 without casting one of them to the same type as the other.

That means for the example you posted works is because the only valid operation that line of code can be resolved to as-is would be the case where all untyped values are inferred to be float by the inference engine.

comment 9y ago · link · parent

> instead of thinking about how to make a tree right, you might want to think about why you want a tree in the first place.

Sure. But that's true for every programming languages, at least in my experience.

Anyway, someone, somewhere will actually want/need that tree. And they'll run into the aforementioned problems.

comment 9y ago · link · parent

You are describing the behavior of standard, safe rust code.

Using unsafe blocks throws all that away.

comment 9y ago · link · parent

> There is no point in using TLS if you can't authenticate the endpoint. Your encryption is but an illusion at that point

You're falling for the same false dichotomy browser vendors have fallen for. There are two, disjoint factors: encryption and authentication. HTTPS provides encryption and recognized CAs provide authentication. HTTP provides neither. The encryption is most definitely NOT an illusion, it's real and it's working. But perhaps you meant to say "your security is but an illusion," which is a very different statement.

comment 9y ago · link · parent

IPC, clock speed and core count don't tell the whole story any more.

All these latest generation chips boost clock speed ("turbo" mode) the fewer cores there are in use. AMD is far more generous with its turbo modes at multiple tiers (read: higher percentage of top turbo speed at the same active core count) although at a significant TDP cost

comment 9y ago · link · parent

They do.

5468.

A proposal to end security interstitials for RFC1918 private IP addresses(neosmart.net ↗)

2 points · by ComputerGuru · 9y ago · discuss

comment 9y ago · link · parent

For anyone looking for, you know, the actual icons which are apparently not visible from the linked site on mobile:

https://vmware.github.io/clarity/icons/icon-sets

comment 9y ago · link · parent

Inflation is measured more by price than income. The salaries being stagnant at Walmart and co don't really have much say in the CPI.

comment 9y ago · link · parent

the same gender who bewilderingly sends dick pics to strangers, talks crudely about women behind their backs, and views them as a means to a physical end, maybe we don't see how we interact with women or at least admit that many of our gender demean women in ways that equates to bullying in one form or another.

Whoah. The fact that some of the 3.5 billion people that share the same sex as myself engage in this lewd behavior renders my* neutrality and view defunct?

Talk about stereotyping!

comment 9y ago · link · parent

Just use the export command to set variables across lines.

comment 9y ago · link · parent

Joins will use the regular index matching it against the join condition just like a where clause would.

5474.

A high-performance, cross-platform tac rewrite(neosmart.net ↗)

1 points · by ComputerGuru · 9y ago · discuss

comment 9y ago · link · parent

It's not about whether they could if they would. It's that they didn't, and therefore the things they'd have done if they would have didn't come to pass.

I'm saying it didn't matter why. Just that at the end of the day, the kernel team isn't opting their weight behind this, and that should factor in to the decision.

comment 9y ago · link · parent

No, you misunderstood me. I am not arguing for FreeBSD everywhere or Linux everywhere. To the contrary.

I'm saying use whatever filesystem Linux provides when you need to use Linux. And use whatever operating system provides native support for ZFS when you need to use ZFS.

We're using ZFS on FreeBSD to do our data storage, ASP.NET on Windows to run our business logic, and PHP under FreeBSD where PHP is required (previously HHVM on Linux because HHVM was the requirement). I'm saying pick the right OS for the right job.

I'm saying figure out your priority with stability in mind.

ZFS is a must when managing big data. It's nice to have otherwise. Decide which factor is the "must" in your case, and if it's ZFS, don't use Linux.

comment 9y ago · link · parent

The ZoL code is not the shoehorning, it's the fact that you're doing so via a community effort to go around the official stance of the kernel developers who've explicitly opted to not support this FS at this time; meaning you're missing out on all the normal development and QA processes and the benefits thereof. There's real value in having the the actual OS community designing the filesystem as well, their experience cannot be discounted.

This isn't just applicable to Linux; we have a strict policy on using only in-kernel filesystems on FreeBSD as well after some poor experiences (_in production_) with aufs-esque ports to FreeBSD. They all look shiny and nice on the outside, and even stress test OK, but when you release them to the masses that's when the shit hits the fan and you realize they're just not designed to the same specifications as the rest of the OS components.

comment 9y ago · link · parent

I can't believe it's 2017 and the official pypy updates come from blogspot; I thought this was a plea from a community member.

Anyway, really good on them to finally move on killing the GIL. It's been a long-time issue - the type that only gets worse the longer you ignore it. That said, I think today Python and GIL are synonymous and the entire Python ecosystem has almost evolved around the GIL. While I'm sure there are applications that would benefit from its removal, I think in the whole, the ecosystem will not change much because of this.

comment 9y ago · link · parent

Windows 10 and OS X now offer "flux" natively, as does iOS (after the whole debacle of forcing fl.ux out of the app store and then implementing the feature into the OS for themselves).

I was a loyal f.lux user for a long time, but now there's really no point.

Additionally, f.lux doesn't (perhaps didn't, I should check the changelog on this new version) take into account OS-native color shifting and (at least on Windows) caused "night mode" to be enacted on top of the OS' own "night mode" leaving me with a... let's just say very drab screen as a result.

comment 9y ago · link · parent

OK, I'm curious: why are people shoehorning the filesystem to fit the OS rather than carefully picking the OS that makes the most sense for the application it's being used for?

We originally ran OpenSolaris _just for ZFS_. Then we switched to FreeBSD when OpenSolaris/OpenIndiana dead-ended. We had a production server running PHP and we were sick of PHP5, so we switched to Linux because HHVM on FreeBSD was a joke. PHP 7 came out and obviated HHVM (from a performance perspective), and so our latest PHP deployments are back on FreeBSD.

If your data is valuable to you (and presumably it is and that's why you're looking at ZFS), why are you not on FreeBSD in the first place?

Same story with ASP.NET - tried deploying on Mono way back before .NET Core was even an idea and realized the futility of it and switched a server farm to Windows _because it just wasn't worth it._ PHP on Windows? Same story - not production ready, move to Linux.

(This isn't to disparage ZfsOnLinux, which I think is a great effort and laudable if only for home user purposes. Instead, this is a question for sysadmins on HN who are using ZoL.. .why?)

5481.

Open Sesame: Science centre unveiled in Jordan(bbc.com ↗)

25 points · by ComputerGuru · 9y ago · 6 comments

comment 9y ago · link · parent

I didn't mean to actually concatenate the two, only to treat them as if they were on the application level.

comment 9y ago · link · parent

Just treat the port as an extension of the binary address space of the IP address. No need to "drop" ports otherwise.

comment 9y ago · link · parent

Multipath tcp isn't really a new protocol as much as it is an extension to tcp and wouldn't offer the benefits that UDP would as it is still constrained by (and benefiting from) the design goals of tcp.

comment 9y ago · link · parent

Those really are not why a 2017 CPU is faster than a 2012 CPU. It's much more pipeline architecture than anything else.

comment 9y ago · link · parent

That's funny because 6 is actually the hardest to reach for anyone without extra-long index fingers.

comment 9y ago · link · parent

Are you monitoring your temps?

5488.

Show HN: Uptime utility for Windows(neosmart.net ↗)

1 points · by ComputerGuru · 9y ago · discuss

comment 9y ago · link · parent

I meant JS-extensible and open source.

comment 9y ago · link · parent

Isn't cockroach protocol compatible with PGSQL?
1
182183184
277