Better HN
topnewbestaskshowjobs
Log inSign up

Coding_Cat

837 karma · joined Oct 11, 2014 (12y ago) · 272 submissions

Submissions

comment 10y ago · link · parent

I often write small bits in C because it's simply fun. And I tend to get bogged down over-abstracting when I'm working in something more modern. The simplicity of C is a boon, allowing me to focus on one small problem and easilly study the performance. (I have spend the last 2 days making a thread-pool and BLAS system in C for fun, initially results are quite good. My 4x4 matrix-matrix multiplication algorithm beats Intel's own example :D).

I wouldn't be quick to use it for a large scale project which does not require 110% performance but for anything were performance is your nr. 1 goal I've found it quite refereshing.

comment 10y ago · link · parent

if scale is a vector say [1, 2, 3] then x+scale = [1+x, 2+x, 3+x], and in Matlab [ [1,2,3], 4] = [1, 2, 3, 4].

I agree with all you said mind you, and could rant even more about Matlab, just giving a possible explanation for how Matlab parses the expression.

comment 10y ago · link · parent

I see plenty, all following a very simple formula & mostly spoofing the original uploader. And those comments stay around for quite a while. They really need to improve the system. Not that there is much value in the YT comments, as you say, I just think it reflects badly on Google that they can't keep these comments out.

comment 10y ago · link · parent

I think you are right about the implication. The providers tend to try and double dip by doing one of three things:

* Not upgrading their network as they should

* Discriminating against certain traffic, see Comcast and Netflix speeds

* or by not allowing content providers to connect their CDNs free of charge, which should be a win-win situation if the providers acted in the customers best interests.

I honestly believe that these bussiness practices are the providers digging their own grave. Best case scenario, they make a few quick bucks before laws get passed against this sort of thing, worst case scenario: the big boys get tired of dealing with them and start competing directly (like Google fiber).

comment 11y ago · link · parent

File for copyright? how do you mean: Copyright is implicit, unlike patents, upon creation of a work.

comment 11y ago · link · parent

I don't have twitter, so I'll just leave this here: perhaps it'd be fun to graph the time delay between RUINED and SAVED?

>but always remember the golden rule of the internet: http://shouldireadthecomments.com

Rather ironic you should post that here :).

comment 11y ago · link · parent

SPIR-V only replaces/complements the OpenCL C kernels (Which whill become a subset of C++ in future release, might have been this one come to think of it) and not the whole OpenCL api pipeline, which is still in C.

Hopefully we'll have a LLVM-IR to SPIR-V transpiler in the future, and then have Vulkan/Cuda/DX12 consume that. I would love to see that.

comment 11y ago · link · parent

>My duty is only to pay the minimum amount I am legally obliged to pay. Not one cent more.

You have a legal and a moral duty. Would you say it is moral of Facebook to pay (virtually) no corporation tax in the UK whilst benefiting from things like the NHS providing healthcare for its workers?

comment 11y ago · link · parent

What about things still hot from the fire? You don't want to put those in the fridge either.

comment 11y ago · link · parent

Ha, yeah. My own approach has also been to mostly keep out of finance myself, but lacking a team of geniusses I have to do the whole 'stack' myself. I tried some demo-forex trading manually, just to test the waters, and while it worked quite frankly after just a week or two it just became busywork.

But now the translation from data->model->strategy that's something else, and highly relevant to my interests (the quant+technical side). But it seems like most traders don't much care for the technical side (nor brokers with their lack of api). Either that or the smart ones know to not make their fancy modeling and tricks public :P.

comment 11y ago · link · parent

Thanks, seems to be some useful stuff in there.

comment 11y ago · link · parent

Would you happen to know some good reads (either on- or off-line) for someone interested in computer trading with a technical background (currently doing a Msc. In Computational Science != Computer Science)?

I have been interested in doing a bit of electronic trading as a hobby (and hopefully a small profit, but I know better than to hope for now) and possibly a back-up career path. But while I've found enough information about trading in general I found it rather hard to find anything dealing with automated trading specifically beyond very simple models.

comment 11y ago · link · parent

Perhaps by adding a .git_sections file which keeps track of different sets of files you might want to checkout, but don't need to. You could have it that you could define different targets (and a default) such that say you are working on a large video-game you could have one repository for everything, but define a "artists" "programmers" and "full" target, where artists can keep their huge assets together with the rest of the repo and programmers can do shallow pulls, not constantly fetching asset files which may or may not be necessary for what they're working on.

comment 11y ago · link · parent

Yeah, as I said I don't know the exact border of legality. I wouldn't be surprised if: a) This would only be an issue in the EU, and Amazon is sticking to blocking on .com. b) The wording of the law is intentionally vague ("Such that a reasonable person would expect..." etc.) and Amazon believes to either be in the clear or that at least the risk/reward is good enough.

To name another example of "kinda maybe I'm not sure"-legality. Supermarket home-brands. I remember a few years a go here in the Netherlands there was a price war going on between supermarkets and the producers were caught in the middle, and as a result of ever-dropping prices they did start to complain that it was anti-competitive to allow supermarkets to also be producers as in an ideal market it would be impossible for the producers to offer the same price-point for the same products. I don't believe it went anywhere, but I do feel they kinda have a point. Although I wouldn't be for banning supermarkets from having their own brand (not that it would really be possible anyway, given modern corporate structures).

comment 11y ago · link · parent

Both are. Legally I believe Amazon is allowed to discriminate against competitors products as long as they're not a monopoly or using their dominant position in the "online-store market" to squash competition in the "online video-market". I'm not sure of the exact definition, but in the EU at least Google has gotten in hot-waters before over something similar.

Generally speaking, you are being anticompetitive if you're strong-arming the competition out of the market as opposed to challenging them based on the relative quality of your product. But at what point exactly it becomes illegal I wouldn't know.

comment 11y ago · link · parent

Iron supports it at the least( http://ironframework.io/doc/iron/enum.Protocol.html ).

And if you want to patch other frameworks or build your own: I have personally used Hyper (http-crate) with the OpenSSL crate to do Https before and I found it very easy.

comment 11y ago · link · parent

It might be nice for us less formally-trained persons to include a small description of what an LR(1) parser is. I tried looking it up wikipedia, but the article isn't that clear either IMHO.

comment 11y ago · link · parent

If this gets implemented in browsers (native or as an extension) I would hope that bookmarking would serve that purpose. Seems like to logical choice.

Perhaps it is also possible to tweak the caching algorithm to keep track of files that are rare on the network.

comment 11y ago · link · parent

> Incorporate elsewhere?

Doesn't matter, to a degree, the rules apply to anyone selling to Europeans regardless of where they are based. How and if non-compliance will be prosecuted is a more complicated matter.

comment 11y ago · link · parent

Pretty sure that won't work. You need to add the VAT in the buyer's region, not the seller's. This is of course a nightmare to manage. See: http://euvataction.org/key-facts/#key_regulations

If that link is to be believed, you also need to submit your taxes on a quarterly basis, not a yearly basis as filesprout mentions as well as keep track of and store your customers data for 10 years.

Also, on your link they say: >Do you take a % of my sales? No way jose :) That's your money.

Whereas the main page says: >No contracts or monthly fees, leave at anytime. We take 5% you keep 95%. Fair enough?

Which too me qualifies as taking a % of sales, 5 to be precise.

And my final complaint: grey text on a white background...

comment 11y ago · link · parent

What is to stop any non-chinese person from rehosting the old code? I mean, they obviously wouldn't like it and if I was said person I'd never visit China's sphere of influence again...

comment 11y ago · link · parent

>The highest YouTube earner of 2014 made nearly $5 million

>Related: A Swedish YouTube star made $7.4 million last year by playing video games

Now I'm not a mathematician, but something seems off here...

comment 11y ago · link · parent

Huh, the image seems to have a different colour than HN has on my browser (Firefox). I wonder what causes that, usually GPU colour corrections don't show up in screen-shots. Compression?

comment 11y ago · link · parent

I see this argument come up a lot in these kinds of discussion, but the problem with 'vote with your wallet' are numerous, including (not all might apply to the HN crowd):

1) market competition: if there's no (better) competitor and you need the services provided for whatever you need, how can you vote with your wallet?

2) Price: I'd love to buy ethically sourced-everything, but I simply cannot afford it and will never be able to (on my current income) as long as unethically sourced remains this much cheaper and the norm. Income and market prices adapt to each other.

3) Knowledge & time: It is incredibly time and energy consuming to find out all these things. Amazon has now made the news, but how do you know which competitors are better? Look at food, even with all the labels we have these days there is still a lot of misleading information out there.

4) All of the above and more applied to everyone: As I mentioned, the above probably doesn't apply to most of the HN crowd, but any of these reasons (and probably a lot more I missed) would be enough to stop someone from voting with their wallet. In order to do so you must have the knowledge, time, energy and availability. Something not everyone has. If but a small minority can (and wants) to vote with their wallet, it will almost never be cost-effective for companies to change.

Whatever happened to good old fashioned legislation? One can make a similar argument for voting (time & knowledge limitations mostly), but they should be less severe barriers.

comment 11y ago · link · parent

>Twitter has popularized spelling abortions (u, r, 4, etc), dumbed-down vocabulary and hashtags over substance.

I don't see how abbreviations or vocabulary change the substance in any way. The only thing it changes is your mindset, and there is something to be said for adopting one's writing to this effect, but in essence: if you are swayed by someone's tone or style instead of substance then that speaks ill of you, not the speaker.

edit: if you are going to be pedantic about other people's writing: `etc' should be followed by a full stop. ;)

>Even worse is when this extreme brevity leads to entirely avoidable misunderstandings.

This is a serious problem for discourse on twitter though, and people have already taken to working around the 140 character limit such as writing (1/4) and tweeting 4 times, or using twitlonger.

comment 11y ago · link · parent

>They nap in the library or in the hallway of academic buildings during normal work hours

As a student: "They (working people) nap in their beds or on the couch during crunch-time and study-hours!"

And while I don't do it myself ot that degree, I also wouldn't call lax-personal care during finals laziness. It's just a different social convention which doesn't hurt anyone.

comment 11y ago · link · parent

Well, Apple knew about the vulnerability long before Esser reported it though. So "responsible disclosure" whould have achieved nothing, so we should not be comparing public disclosure to it, but be comparing public disclosure to no disclosure.

comment 11y ago · link · parent

I never realized how odd it is, etymological, to release a release candidate before.

comment 11y ago · link · parent

Spinal cords, marrow, organs (especially brains) tend to be very nutrious in fact. When given a choice, most wild animals will preffer what we call the waste.

comment 11y ago · link · parent

While I certainly think it's true that the "real deal" would jump on any patches put out and reverse-engineer the exploit with relative ease, I expect the actual hack scene to have the same distribution of skill (if not more skewed) than the regular programming world. For every Carmack there are 10 me's, and for every professional exploit builder there is an army of script kidies. Look at how widespread Shellshock and Heartbleed exploits became after their disclosure, I don't think there are that many attackers capable of making such an attack themselves without a PoC.
1
678910