Hacker Newsnew | past | comments | ask | show | jobs | submit | _9jgl's commentslogin

This looks incredibly cool; I'm wowed by the fact that the model has learnt to negate words in if-else statements, though I struggle to think of a case where that particular completion would have been useful.

At the same time, I'm less excited about the fact that the model is cloud-only, both for security/privacy reasons and because I spend a not-insignificant amount of my time on limited-bandwidth/high-latency internet connections.

I'm also curious as to why the survey didn't ask about GPU specifications; most of the time I use my laptop to code whilst plugged in, and I'd happily use only LSP completions when on battery, so power consumption wouldn't be an issue (though fan noise might), and allegedly my GPU (a GTX 1050) can pull off almost 2 TFLOPs, which is well over the "10 billion floating point operations" mentioned in the post.


> I'm wowed by the fact that the model has learnt to negate words in if-else statements

I know it learned natural languages from using GPT-2, but I am surprised it didn't get "confused" since words are used in such a different way in programming.

For example strong appears as the html tag <strong> with no corresponding <weak> tag. And weak appears in weak_ptr in C++ and there's no such thing as a strong_ptr.


Vanilla GPT2 actually does a half decent job of emulating the style of programming.

Try entering "public static int main() {" into https://talktotransformer.com/


I think the tokens are simply one hot encoded. Though some sort of word2vec embedding is also situationally plausible


Good point, I added it to the survey.


Since it's asking for FLOPS, are you ready for people typing in 14-digit numbers? ;)


I'm looking forward to some data cleaning :)


So for reference (and checking) I entered 1862000000000 for my 1050 ti.


Presumably it's no more confusing than, say, a shebang is for Windows users.


An interpreter directive is far more common than a piece of configuration specific to an editor. It also serves a practical purpose on *nix style systems whereas editor configuration is a matter of preference.


IIRC, do-release-upgrade won't upgrade between LTS releases until the .2 release.


Yup but I've already turned off the LTS setting.


Sorry, brain fart – you have to upgrade between non-LTS releases sequentially, as far as I know there's no supported way to upgrade to 19.04 from anything but 18.10. (in general, to get to release n, you must either be on release n-1, or n must be an LTS and you must be on the previous LTS.)


Yeah but that's what it's trying to do too, and that's exactly what's failing: https://news.ycombinator.com/item?id=19693284


Sorry, totally missed that. Looks like some other people have had similar issues with upgrading to previous versions: https://github.com/Microsoft/WSL/issues/3489 (though the issue is for (I think) 16.04->18.04, someone mentions that it also affects 18.04->18.10)

it's strange that that's all the output you get, though. Apparently it puts logs in /var/log/dist-upgrade/, is there more there?


AHH, thank you! /var/log/dist-upgrade/main.log explains why! It's indeed another instance of a bug I already saw when upgrading another system [1] and couldn't figure out -- there's a missing dependency in some Ubuntu package:

  sudo apt-get install python-distro-info python3-distro-info
EDIT: Do yourself a favor and don't upgrade to 19.04 on WSL. VSCode and google-chrome-stable can't start on it. I had to roll back.

[1] https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upg...


Not exactly the same, but: https://whydoesaptnotusehttps.com/

tldr: if you verify the download against a trusted PGP key, it doesn't matter where the download actually came from.


Which is, IMHO, a ridiculously short-sighted approach that ignores the difference between theory and practice.

If there is a vuln in (or before) the GPG signature check, using HTTPS has a good chance of making it a lot harder to exploit (because the attacker will likely need to get into a trusted position instead of MitMing any HTTP connection).


It does matter if you're behind a dumb corporate firewall that doesn't care what you're requesting, unless it's not going through HTTPS.

Why yes, this is dumb. Why yes, I can't do anything about it. This is why having an https path matters.


Thanks!


One difference between ctrl-tab and alt-~ (or alt-`, depending on your keyboard layout) is that tabs within a window are very close to each other, and obviously distinct from windows in their own right, whereas it's frequently not immediately obvious whether two windows belong to the same application.


It also doesn't come preinstalled on any devices I'm aware of, which adds a significant amount of friction.

Even once you've installed it, it can't auto-update apps.


So? Netflix didn't come preinstalled on my phone, but I still use it.

Installing F-Droid is easy, and installing and managing apps through it is also easy. I prefer it when I can find a suitable app.


> Installing F-Droid is easy

but nevertheless harder than installing Netflix

> installing and managing apps through it is also easy

but updates are not automatic (unless you root)

I don't dispute that F-Droid is not terribly difficult to use, but the original statement that "It's easier to use than the Play Store" is obviously false as soon as you take into account the mechanics of getting it installed.


Yes it can, though it needs to be installed as a privileged app.



Likewise, I'm not sure I'd think anything was strange if I came across https://stackroboflow.com/#!/question/12110.


That's from the "tabs" permission; I'm not sure why the extension requests it, as it doesn't appear that it's required by the code (the chrome.tabs API does not require it, you only need the permission if you're reading the URL/title/favicon of existing tabs AFAIK).


Because it's not true! Threads in Python can muck around with the state of any other thread, at any time – it would be a language change to assume otherwise.


What op means is that it’s not true in Java as well, but the JVM assumes it is true until detecting otherwise


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: