Better HN
topnewbestaskshowjobs
Log inSign up

SloopJon

2,613 karma · joined Nov 15, 2013 (13y ago) · 775 submissions

Submissions

comment 7y ago · link · parent

Thanks for that background. I was thinking that the (for lack of a better word) politics of CJKV and Han unification likely had a lot to do with it.

To my eyes, the letter "A" in English (Latin), Greek, and Russian (Cyrillic) looks identical. Why does it need three separate code points? Maybe it gets tricky when the relationship between uppercase and lowercase diverges. In fact, that does appear to be one of the arguments in this technical note:

https://www.unicode.org/notes/tn26/

comment 7y ago · link · parent

I haven't gotten past demos yet, but I'm intrigued by WebView [1] as an alternative to Electron.

[1] https://github.com/zserge/webview

comment 7y ago · link · parent

Everyone has a different path, but frankly, I wouldn't recommend C++ as a first programming language. It's much easier to comprehend if you have some background in another language.

My three favorite C++ books are C++ Common Knowledge, Modern Effective C++, and Effective C++. Two of those predate C++11, but most of the advice is still applicable.

As for introductory texts, I guess there's: Accelerated C++, C++ Primer, Discovering Modern C++, A Tour of C++, and of course C++ Crash Course (the book under discussion).

I wouldn't get too hung up on "modern" C++. The vast majority of C++ programmers learned the old stuff (the vast majority of which is still valid), then caught up on the new stuff with Effective Modern C++, blog posts, etc. Just as it's useful to know C before you learn C++, it's useful to know old C++ before you learn modern C++.

comment 7y ago · link · parent

The "compile-time programming" category of this survey is dominated by constexpr proposals, where constexpr can replace some pretty ugly template metaprogramming.

comment 7y ago · link · parent

Case law on copyright for fonts is complicated, with fonts generally having less protection than other works. My impression is that Comic Code is no more derivative of Comic Sans than, say, Arial is of Helvetica.

comment 7y ago · link · parent

TIL that Java 10 added local-variable type inference, to which I say, about damn time. I indeed decry having to type (and read) Foo<Bar> baz = new Foo<Bar>(), and no, Foo<Bar> baz = new Foo<>() isn't much better. I tested a project a couple of years ago using Java 8, and the contrast with the magical inferential powers of lambdas was stark.

Maybe it's because I've spent so much time in dynamically typed languages, but I see var/auto as absolutely essential to making static typing palatable. I'm a big fan of static typing, but I would be much less so if I had to do it without inference/deduction.

comment 7y ago · link · parent

Hypothesis is my favorite. I also use TestCheck.js [0] for JavaScript and RapidCheck for C++ [1], but the Hypothesis generators seem the smartest, and they're easy to customize.

[0] http://leebyron.com/testcheck-js/api

[1] https://github.com/emil-e/rapidcheck

comment 7y ago · link · parent

This doesn't have anything to do with the discussion of Python application streams. The linked blog post contains a table of UBI 7 images that includes python-27 and python-36, and a table of UBI 8 images that only includes python-27.

I think the table is misleadingly presented as comprehensive ("the set of container images"). If you follow the "RHEL 8 How To" link at the bottom of the page, you'll find a larger table that indeed includes python-36. It doesn't seem to be usable out of the box, but I was able to pull it with Docker:

        $ docker pull registry.access.redhat.com/ubi8/python-36
Now I need to read up on S2I and podman.

Edit: not sure what I did wrong the first time, but it does work fine in Docker:

        $ docker run --rm -it registry.access.redhat.com/ubi8/python-36 python
        Python 3.6.8 (default, Apr  3 2019, 17:26:03)
        [GCC 8.2.1 20180905 (Red Hat 8.2.1-3)] on linux
        Type "help", "copyright", "credits" or "license" for more information.
        >>>

comment 7y ago · link · parent

Red Hat Developer blog post on the topic:

https://developers.redhat.com/blog/2019/05/07/what-no-python...

This is an instance of what they're calling application streams, as explained in another post:

https://developers.redhat.com/blog/2018/11/15/rhel8-introduc...

comment 7y ago · link · parent

I naively thought that "worth it" had something to do with the quality of education. I shouldn't be surprised, after peeking at the outline.com link, that the WSJ is evaluating strictly in terms of future income.

With an MIT founder, we hire a lot of MIT grads. After that, I didn't think it mattered much, but then I was involved in hiring a summer intern. HR gave me a couple hundred resumes, almost all from elite schools: MIT, Harvard, CMU, Brown, Yale, etc. I ended up picking someone from Yale, who was fantastic, but I can't help but thinking that the apparent school filter kept me from seeing a lot of great candidates.

comment 7y ago · link · parent

Ligatures, which are mentioned in the article, are a good example of the distinction between canonical and compatibility forms.

If your input contains "traffic", you don't necessarily want NFC to insert the "ffi" ligature and turn it into "tra\ufb03c". The ligature is generally a poor choice in a monospaced font, for example.

Similarly, if you've gone to the trouble to insert the ligature, you don't necessarily want NFD to strip it out. However, with NFKC or NFKD, a search for "traffic" will find the string.

comment 7y ago · link · parent

Thank you. I was trying to figure out what language this is, because there's some weird syntax in the .h and .cpp files that I don't recognize as C++.

comment 7y ago · link · parent

> That being said, I think flac is generally a good choice for a music collection.

One other consideration for a music collection from CDs is getting a good rip in the first place. I've had some horrible rips in iTunes, even with error correction enabled. I have much more confidence using a tool like XLD that supports AccurateRip, which probably doesn't work with a lossy format.

If you want to transcode after the rip, fine, but you may as well hang on to the FLAC.

comment 7y ago · link · parent

One thing I've found surprising and interesting over the past decade or so is the popularity of permissive licenses like BSD, MIT, and others. I would have expected the essential share-alike fairness of copyleft to resonate more. I don't know if it's down to marketing (the whole viral thing), the influence of commercial users, or if it's fundamentally what people prefer, as you do.

comment 7y ago · link · parent

"The community now understands that the original concept of open source has to be fixed." Well, how lucky for the community that a wise startup came along and fixed open source.

I get that open source business models are hard, especially in an increasingly commoditized space like databases. Still, it rubs me the wrong way when a business wants the goodwill of open source, then tries its hardest to bend the rules in its favor.

comment 7y ago · link · parent

Reposting my comment from the previous submission:

From a Washington Post article on this study: "LastPass had me speak with its top technical executive -- but it also got [lead researcher] Bednarek banned on Bugcrowd, the site for researchers to report flaws, because he disclosed the bug to me."

https://www.washingtonpost.com/technology/2019/02/19/passwor...

More from CyberScoop:

https://www.cyberscoop.com/bugcrowd-adrian-bednarek-lastpass...

comment 7y ago · link · parent

From a Washington Post article on this study: "LastPass had me speak with its top technical executive -- but it also got [lead researcher] Bednarek banned on Bugcrowd, the site for researchers to report flaws, because he disclosed the bug to me."

https://www.washingtonpost.com/technology/2019/02/19/passwor...

More from CyberScoop:

https://www.cyberscoop.com/bugcrowd-adrian-bednarek-lastpass...

comment 7y ago · link · parent

Do I understand correctly that the record layer is only usable by Java clients? That strikes me as a drawback of the layer approach: unless you supply a server protocol, like the document layer does, every language essentially reimplements the layer from scratch. That seems to be the case for the tuple layer, for example.

comment 7y ago · link · parent

That page says, "Requires Google Chrome or Firefox," and the download link takes you to the Chrome web store. I'm not sure the poster considers that full support.

comment 7y ago · link · parent

If I'm reading this correctly, the "modern C++" part of the library is in fact supplied by a C++ wrapper around a C-style API.

comment 8y ago · link · parent

More accessible than the previous gen (although oddly iFixit gives it the same score of 6/10), but it's harder than I'd hoped to get to the RAM.

comment 8y ago · link · parent

> most of the shiny new stuff is coming out on .NET Core first

I hadn't fully appreciated prior to this post that .NET Core has things that aren't in .NET Framework, let alone .NET Standard. I thought it was a portable subset (a core, if you will) of the full .NET languages and APIs. I don't know whether that makes me more interested in Core, but I'm certainly less inclined to target any other flavor.

comment 8y ago · link · parent

The only place I see that mentions 16 KB is the instruction cache on the S7 monitor core. Apart from cache, it doesn't look like any of these include RAM.

comment 8y ago · link · parent

We use the trashcan Mac Pros at work to host VMs, and it's kind of a pain in the tuchas: terrible form factor, wicked expensive, and really outdated. These maxed out Mac Minis will be better for us in almost every way.

As a home user, I just might get this instead of building another hackintosh, but my guess is that it will be less interesting priced with a usable configuration. If the memory and storage is user upgradable, on the other hand ...

Edit: if I max out a Mac Pro's memory and storage, it comes to US$4,800. A comparable Mac Mini is US$3,300, and I can spend $800 to double the storage to 2TB. I definitely see us getting these at work.

For home use, I like that I can upgrade the memory, but Apple is predictably marking up the storage big time.

comment 8y ago · link · parent

This looks like buggy JavaScript. The cohesion() function in the script element at the end of the post is a little different than the calculateCohesion() function described in the post:

  var averagePosition;
  if (count > 0) {
      averagePosition = {
          x: positionSum.x / count,
          y: positionSum.y / count
      };
  } else {
      return {x: 0, y:0};
  }

comment 8y ago · link · parent

I recently bought a Huawei (yeah, I know) MateBook X Pro, having used Mac laptops almost exclusively since the iBook G4. My only complaint with the hardware (drivers?) is that two-finger scrolling on the otherwise decent trackpad isn't nearly as smooth as on a MacBook.

My biggest problem is actually connecting mail, calendar, and contacts to Google. Whereas it works out of the box on my Macs, I have not been able to get them working in Windows 10. I've fiddled with 2-Step Verification and Allow less secure apps. I can get mail working over IMAP by enabling 2-Step Verification and using an application-specific password, but I've had no luck with calendar or contacts.

I presume I would have the same problem with Microsoft hardware.

comment 8y ago · link · parent

Looks like Python 3.7 is not supported yet:

https://github.com/tensorflow/tensorflow/issues/20517

Somewhat off topic: I'm rediscovering the dance required to set up a new Windows 10 laptop with Python, CUDA, and TensorFlow. If I understand correctly, pyenv does not work on Windows. Is there something similar?

Also, if I installed TensorFlow in WSL, it wouldn't be able to use the GPU, would it?

comment 8y ago · link · parent

It's rhetorical. The point is that if you trust your distro with millions of lines of code from Linux, GCC, and a thousand other packages, then you should be able to trust it with one more package (albeit a big one).

comment 8y ago · link · parent

These are the type of tips that would great in a new edition of C++ Common Knowledge. Effective Modern C++ is great, but sometimes a little more in depth than you need or want on a first reading.

comment 8y ago · link · parent

I use Dvorak exclusively at work, and move between QWERTY/Sholes and Dvorak at home. I'm a better typist with Dvorak than I ever was with QWERTY, but I admit that I'm slightly worse at QWERTY since adopting Dvoark.

For me, however, it's much more about comfort than typing speed or accuracy. Two of the touted advantages of Dvorak are: reduced finger travel, by putting frequent letters on the home row; and frequent alternation, by putting all the vowels on one side.

I'm intrigued by the effort grids used in designing BEAKL. I agree intuitively with the idea that the pinkies are much weaker, so perhaps a home block does make more sense than a home row.

1
141516
26