Better HN
topnewbestaskshowjobs
Log inSign up

HumanDrivenDev

603 karma · joined Sep 13, 2017 (9y ago) · 435 submissions

Submissions

comment 8y ago · link · parent

C++ is actually missing some of the nicer stuff from the last few ANSI-C standards. Struct initializers especially.

comment 8y ago · link · parent

D is much, much easier to get into than rust though. Rust is in the C++/Scala realm of complexity, while D is as easy as C# or Java.

But D does not have the hype-machine behind it that rust does. Rust also does have advantages, it's a bit more safe by default, and is based around concepts that are very much in-vogue (ADTs and pattern matching). But I don't think rust is nearly as productive.

We'll see how it all shakes out.

comment 8y ago · link · parent

I accidentally wrote IMO instead of AFAIK. But thanks for letting me know laws aren't opinions, TIL!!!!

comment 8y ago · link · parent

The nanny states of Australia and New Zealand are the only two places on earth where that's the case, IMO. Australia even censored a tourism advertisement because it showed someone riding a bicycle without a helmet.

You'd fit right in.

comment 8y ago · link · parent

> If you find that definition unsatisfying, sure you can call them different languages. We just call them dialects and that's not going to change.

Sure, if you want to speak Chinglish, keep calling them dialects. If you want to speak English, listen to what people here are telling you.

comment 8y ago · link · parent

Terms in different languages don't map 1:1. You're trying to fit Chinese square pegs into English round holes. I think this is due to Chinese education methods, since you all do it - even very fluent writers such as yourself.

I'd translate "方言" to "dialect" when it's mutually understandable, and "language" when it's not. So Singapore Hokkien and Taiwan Hokkien are both dialects of the Hokkien language. But I'd translate 方言 to "language" when talking about Mandarin and Hokkien. They're languages not dialects in English because you cannot have a conversation - but they are part of the same language family.

comment 8y ago · link · parent

Disclaimer: I'm not in the 'rust community' (nor would I want to be!). I'm not an evangelist for it, and I'm not very good at it. I like the language though. Anyway...

I really think people need to get over syntax. I don't find rust particularly good looking either, but I get over that because I like the semantics and it sits in a nice place in the ecosystem of programming languages. Likewise i don't like how C# uses PascalCase everywhere, or puts opening braces on its own line - yet when I program in C#, I adhere to those conventions.

Syntax is incredibly subjective, and also superficial. If you think the semantics of a language suck or are not a fit for what you are doing - that's a reasonable conversation. But you really shouldn't limit your language choice based on non-alphanumeric characters or whatever your objection is.

comment 8y ago · link · parent

Is there a good guide on how to make libraries with C bindings in rust? I've been learning it for the past few days but without much of a use case. Fast libraries with a C API in a higher level language would be very useful though.

comment 8y ago · link · parent

Well one advantage is that Singaporean employers can put on superfluous "must speak Mandarin" sentences in their job descriptions, which lets them hire Chinese people and avoid hiring Malay and Indians, all the while landing on the right side of anti-discrimination laws.

Hard to do that when lots of people speak Hokkien, Cantonese etc.

comment 8y ago · link · parent

And Portuguese people can often understand Spanish. Are they dialects?

comment 8y ago · link · parent

I think it's even funnier to see how many Chinese people - even those Chinese people who are fluent in English - take the folksy word 方言 and try and shoehorn that into the precise linguistic term "dialect". For whatever reason Chinese the world over seem to believe in literal 1:1 translations of Chinese -> English terms, when they really don't mean the same thing. It makes it very hard to talk to them.

We all learn classical Chinese at school, and that must be a completely different language.

Of course it's a different language. It's not completely different. Languages can be related to each other. Old English is a different language than English. If English was written in Logograms instead of a phonetic alphabet, many of us could probably read Beowulf the same many of you can read the works of 老子.

Again, if I had the Chinese mindset, there would be a language called "Indo European" which would have various dialects like "Persian" and "Russian" and "Icelandic". There would also be "Standard Indo-European" - aka, English. It makes no sense.

comment 8y ago · link · parent

This is true, but it's a separate issue from having various dialects. Language evolves as time goes by, and in the case of Chinese before "written vernacular", people would write in the same form of ancient Chinese (regardless of pronunciation) which diverged a lot from what people actually speak. With the promotion of "written vernacular", people started to write what they speak, irrelevant of dialects.

No, people started to write down what they spoke in Mandarin. It wasn't irrelevant to the language they spoke, it was tailor made for Mandarin. Hong Kong went through this exact same process, and came out with a different written language. Which is why you have a cantonese wikipedia and a mandarin (w/ traditional chinese characters) wikipedia. And which is why Taiwanese people who can read mandarin in traditional characters fluently can't read cantonese in traditional characters fluently.

French and Spanish are 'mostly the same'. Same alphabet and everything. And they're not dialects. With languages like Hokkien it's more like the difference between English and German.

I speak a southern Chinese dialect myself (I don't know what to call it in English) which is also dramatically different from Mandarin. Yes it has a few words that we commonly used, that I thought to be unique, but it turns out all of the characters and words exist in standard Chinese dictionary.

That's because you never learned to write your language, because people don't consider it worth writing. You would have hammered mandarin characters into the right shape, because - presumably - that was the only thing your family was literate in. Of course it turned out the characters matched fairly well.

Again, that's like me finding out that "bonjour" in French actually literally translates to "Good day" in English - doesn't mean they are the same language.

I think you also agree that both Taiwanese and people from mainland China CAN read Hong Kong newspapers, just not as fluently.

Sure. I'm an English speaker that doesn't speak French or Dutch, but I can follow a French or Dutch newspaper well enough, if not all the details. Are French and Dutch just dialects of English? Goede Dag is just Good Day after all...

comment 8y ago · link · parent

Its just typical chinese nationalist mythology. 'We all speak the same language' is just another fairy tale they drill into their heads, along with '5000 years of culture'

When youve talked to one of them youve talked to all of them.

comment 8y ago · link · parent

> but suppression of dialects was never a major part of the campaign

From the article:

The initial goal of the campaign was for all young Chinese to stop speaking dialects in five years, and to establish Mandarin as the language of choice in public places within 10 years.

> Hokkien is still spoken by many Singaporean.

Again, the article shows that in 1980 81.4% of Chinese Singaporeans spoke a Chinese language at home that wasn't Mandarin. In 2015 it's 16.1%.

comment 8y ago · link · parent

> Native speaker here. I have absolutely no idea where you get that.

Mandarin wasn't really written until about 120 years ago. Before people would write classical Chinese. It's a "written vernacular/白話文".

> Cantonese is just one of many dialects, and in fact, it is not a single dialect: People from different parts of Guadong province actually speak Cantonese very differently. Should you consider those different languages?

No, I'd consider them different dialects of a language called Cantonese.

> Even though some of the dialects sounds very differently, the words, syntax, sentences being used are actually the same.

Nonsense. Hokkien has a different grammar, even the personal pronouns don't match up 1:1. They're clearly in the same language family, sure, but so are English and German.

> That's the reason people from mainland China (no matter what dialect they speak, even Cantonese) cannot read Hong Kong newspaper fluently

No, it's not. I've seen Taiwanese people try and read Hong Kong newspapers, and they can't do it fluently.

comment 8y ago · link · parent

I just want to let you know I enjoyed this rant. It's a shame hacker news has this downovting/upvoting nonsense. Popular opinions can be worth sharing.

comment 8y ago · link · parent

Cantonese, Hokkien, and Mandarin are not at all mutually intelligible. Mandarin speakers can't even read Hong Kong newspapers fluently.

Only Mandarin and Cantonese even have a fully developed way of writing with characters. Up until relatively recently Mandarin itself was considered a spoken language, until a written standard (ie correspondence of characters with the words people actually spoke) was developed. Hokkien is in the process of this now in Taiwan, they literally have a government department choosing characters for words (They started off with 900 or something, not sure where they are up to now).

comment 8y ago · link · parent

> I’m not sure about Singapore but in Taiwan other Chinese languages were forcefully suppressed.

Singapore was much more successful in suppressing Hokkien than Taiwan was.

https://en.wikipedia.org/wiki/Speak_Mandarin_Campaign

comment 8y ago · link · parent

> presumably in a well-intentioned attempt to package this in a way the Western mind can comprehend

Did you intend for that to come across as condescending?

comment 8y ago · link · parent

> Thanks to massive advances in programming language design

What massive advances in programming language design have we had since 1998!?

comment 8y ago · link · parent

There's no scenario where China doesn't get Taiwan, unfortunately for the people there.

People have been saying that for 69 years. I'm not saying it's a disturbing possibility, or that people shouldn't be preparing for it. But it's not as likely as you seem to think.

There's no comparison to the Crimea situation. Crimea was overwhelmingly pro-Russian, and had a strong independence streak (see: the sovereignty referendum of 1994). An amphibious invasion against a largely hostile population is an entirely different matter, and would not be pretty, even for a large power like China. There's also the small matter of the US navy and Air Force.

I also don't think the US (or Japan) are keen on moving the focus of Chinas expansion from Taiwan to the Senkakus, which is what would happen next.

There's a lot of factors at play, it's a larger issue than just comparing two mismatched militaries.

comment 8y ago · link · parent

Your sources are an absolute joke. I'm willing to have a real conversation about this, but I'm not trawling through links with memes in them.

You mentioned McCarthyism before, yet you believe in a similar conspiracy theory - "Crypto Fascism" - where instead of people being secretly communist, they're secretly fascist. I don't know how you reconcile this with yourself but I don't buy it.

comment 8y ago · link · parent

The European Union can't coordinate a common policy on its external borders, defense or foreign relations. Aren't those the things best handled by a supranational union/confederation, while things like tax are best handled by individual member states?

The EU is bizzare to me in how much it legislates wrt to the internal affairs of its members, and how little influence it has on the things I mentioned above. Seems inside out.

comment 8y ago · link · parent

I'm not very familiar with Richard Spencer. Can show me an example where he self-describes as fascist? I couldn't find anything relevant on the wikipedia page. Ditto with breitbart being "obviously fascist". I might accept it being a right-wing tabloid, but that seems about as silly as calling huffington post "obviously communist".

I've noticed terms like "fascist", "white supremacist", "far-right" are thrown about fairly casually, while calling self-proclaimed communists "communists" is often met with derision or denial.

comment 8y ago · link · parent

In the other extreme, if you use a sufficient advanced language, all your language patterns are actually checked by the compiler and/or interpreter, instead of the programmer. They stop being patterns and are just language features.

I've heard people mention that a lot, but the only concrete example the ever give is "you don't need the strategy pattern because of first class functions", which is doesn't hold up when you examine it closely.

comment 8y ago · link · parent

> No, it's been shifting more _liberal_, which is different. The effects of British and American McCarthyism still put Marxist (and also any associated leftist) thought very much out of the mainstream.

But Marxism is a much more socially acceptable than say, fascism. I've seen a lot of communist themed parties where people hang up hammer and sickle flags, but rarely any parties where people hang up swastikas (or at least, they don't post them on social media !)

> Political Compass isn't an impartial or scientific measure. It's center is not guaranteed to correspond the political center of the globe.

comment 8y ago · link · parent

I don't know how you've come to these conclusions. A huge segment of the working class is right-wing and always has been. Being far-right is a rebellion for the poor just as much as it is for the rich.

comment 8y ago · link · parent

One thing I find interesting is that moral outrage and hygienic thought are now the domain of the left - a sharp contrast to even a couple of decades ago. If a young person wants to be edgy and rebel - they become far right, not far left.

The 'alt-right' is largely a manifestation of this.

comment 8y ago · link · parent

Part of this is that the Overton Window has shifted so far right that "left wing" in the mainstream now means "center", however it cannot be ignored that what the mainstream considers 'normal' has indeed been shifted over time by the editors (and through them, the owners) of the newspapers.

That's a bit disingenuous, considering the overton window had been relentlessly moving leftwards for decades before this. I think what you're seeing now is a correction, and the end of "peak leftism" - at least for another few decades.

1
678
15