HN user

modulus1

121 karma
Posts0
Comments32
View on HN
No posts found.

And they even made the C++ version more verbose than it should have been. Most people would write:

class Person { int age = 0; };

I wish rust would make default struct field values this easy to write.

MS and Apple have the same thing, they're just less successful. Just a browser and an OS was previously seen as antitrust (and it looks like MS is being anti-competitive in this space still). Just a browser and a search engine can allow anti-competitive behavior. Or just a search engine and an ads platform...

The problem is the anti-competitive behavior. Businesses are generally rational actors, so clearly our system isn't working. It's unclear what the boundaries are until years in court, and even then it only applies to a single company.

A company owning a web browser isn't the problem. A company owning a web browser, OS and search engine shouldn't be a problem either. I don't know why the remedy can't actually address the problem, and the DOJ can't move more quickly to address antitrust across the industry. This feels like randomly cutting a baby in half, while the rest of the thieves, even those in the same family, are not deterred.

Author doesn't actually know what this information is being used for. Sure there can be a discussion about whether this information should be recorded at all (say, to determine if your site doesn't work on certain hardware), but claiming it _is_ fingerprinting is baseless.

It probably also helps that extending Atom is much more approachable given that it's all Javascript...

I've heard this said before, I've had the opposite experience. ST offers a small api and it was easy for me to make something work with a single .py file. I gave up trying the same thing in Atom; the api is larger and lower-level. Admission: I don't know coffeescript.

ST of course isn't nearly as flexible, there are many things you just can't do.

No high ranking USG official should be using insecure communication channels, as it will inevitably lead to leaks that could damage the state (secret information).

What Clinton did was dumb, but no one should have sent her classified emails in the first place. If the people sending the 'classified' documents were doing it through the right channels, it wouldn't be getting to her email server.

1% the Code (2001) 11 years ago

It's strongly typed, with a bewildering variety of types to keep straight. More errors.

Odd complaint, especially to be levied against C.

I have yet to see a convincing argument that it's not

http://www.informit.com/articles/article.aspx?p=2213858

Don Knuth: As you say, I've come to believe that P = N P, namely that there does exist an integer M and an algorithm that will solve every n-bit problem belonging to the class N P in nM elementary steps. ... My main point, however, is that I don't believe that the equality P = N P will turn out to be helpful even if it is proved, because such a proof will almost surely be nonconstructive. Although I think M probably exists, I also think human beings will never know such a value. I even suspect that nobody will even know an upper bound on M. ... The moral is that people should distinguish between known (or knowable) polynomial-time algorithms and arbitrary polynomial-time algorithms. People might never be able to implement a polynomial-time-worst-case algorithm for satisfiability, even though P happens to equal N P.

This article seems to assume that problems in P are computable no matter the size. If it is shown NP=P, but the best algorithm we have is O(n^100), we still don't have a computer that can actually finish the computation.

This is one of the trouble spots I have with Go.

Say I have 3 members that must be set, and 5 optional members. Go's solution is to make the 3 critical members private so that someone using this struct will probably figure out they should use a construction function. And doing this means replacing all code that creates my struct with calls to a 'New' function. With all this friction, people aren't likely to do the right thing.

At least in C++ with public members I can initialize appropriately in the constructor. Of course littering my code-base with public members would be bad practice in the first place.

'Use tagged literals for struct initializations'... I'd rather the compiler help me make sure i've updated all uses appropriately when I add a new field.

Go's success has me confused. My team enjoys using Go, but to me it feels like i'm a prisoner. The designer's slavishly followed opinions are laser focused on reducing variation across go codebases. There's definitely less to learn than most languages. Unfortunately, sometimes the blessed way of doing things doesn't work well for your problem and not only are you left with a hammer to cut the wood, but making a saw is outlawed.

Something i've been using more lately is Ctrl-R + Register. Great for inserting text in command mode. For instance, you can do this to insert your recorded macro (if it's in register q) as a norm command: :norm Ctrl-R q

This is the #1 problem I have moving from SVN to Git. With SVN, everything is just in one repo. I can atomically commit to multiple related projects. If i split up projects into individual Git repos, everything is suddenly more complicated. Keeping dozens of projects in the same Git repo avoids this problem, but now developers are forced to clone projects they don't use.

I'm a Git novice, maybe managing submodules isn't as bad as it seems to me or the author of this article. What is your experience?

Couldn't get it to work: Couldn't connect to Julia

INFO: Couldn't find Jewel package, attempting installation... ----------------------------------------------- We couldn't install Jewel.jl for you. Try using Pkg.add("Jewel") in a Julia repl.

There's a ton of variables feeding into the performance of your software. I've spent a lot of time trying to improve cache coherence, branch mispredictions, etc... with very little to show for it.

Asymptotic complexity is the best place to start. I thank academia for this 'naive' model.

Mathematics is like a fractal, given some axioms it explodes into an infinite set of true equations. No one has to observe math for it to exist. I think our universe(s) could be the same way, given some natural laws, or equations, everything we know is defined to take place. Why would there have to be anything 'running' the simulation.

:e . Will show a directory listing, you can navigate the directory tree and open files. Particularly useful if you have a shortcut to change the working directory to the current buffer's file path.