Better HN
topnewbestaskshowjobs
Log inSign up

SloopJon

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

Submissions

comment 9y ago · link · parent

I'm finally getting around to taking this course. I too find Octave to be a bit weird, so I'm a little behind on the programming assignments. However, I'm looking forward to getting comfortable with a different way of programming.

Everything I've read about the course suggests that the programming assignments are actually pretty easy. Hopefully I'll reinforce, rather than confuse the core concepts in translating them to this unfamiliar language.

comment 9y ago · link · parent

I see that libexpat adopted SipHash just last month, per issue #35 / pull request #39.

comment 9y ago · link · parent

It looks like RStudio is AGPL v3, which is a free and open source license. Enterprise users only need a different license if they don't want to abide by the AGPL's strong copyleft requirements.

comment 9y ago · link · parent

One of the chapters added in the second edition of Peopleware quotes from a presentation by Steve McMenamin: "People hate change ... and that’s because people hate change ... I want to be sure that you get my point. People really hate change. They really, really do."

comment 9y ago · link · parent

I was reading through a survey of programming language history the other day in Michael Marcotty's Software Implementation, which includes this quote from Jean Sammet (1969): "COBOL ... encourages a certain amount of verbosity. The benefit gained from this, however, is increased readability and understandability in looking at programs."

Marcotty writes: "The important thing is not whether the committee was right in its conclusion, but that a serious effort was being made to design a programming language for communication between people as well as with computers."

To put this in context, consider this quote from Backus and Heising (1964) about Fortran: "[Our group] had one primary fear: ... an important application ... would run at half the speed of the hand-coded version. It was felt that such an occurrence ... would almost completely block acceptance of the system."

comment 9y ago · link · parent

I did twenty or so Euler problems in Python a while back. I just started doing a few in C# to brush up for an interview. Forcing myself to write working programs is a really valuable complement to reading through C# in Depth; indeed, it's probably the other way around.

Although I agree with another poster that Euler is a bit math heavy, being able to submit a single number to check your solution is handy. Google's foobar recruiting puzzle system actually tests your program, but it's limited to Python and Java.

comment 9y ago · link · parent

The fix is described here:

https://chromium.googlesource.com/chromium/src.git/+/08cb718...

It seems very limited in scope, essentially preventing the Unicode display of a domain that only contains the following "Latin-alike" Cyrillic characters: "асԁеһіјӏорԛѕԝхуъЬҽпгѵѡ".

comment 9y ago · link · parent

From the end of the article: "This article originally appeared on Medium."

https://hackernoon.com/multi-millionaire-at-27-what-i-learne...

comment 9y ago · link · parent

The Github README says, "Guetzli generates only sequential (nonprogressive) JPEGs due to faster decompression speeds they offer." What's the current thinking on progressive JPEGs? Although I haven't noticed them recently, I don't know whether they're still widely used.

comment 9y ago · link · parent

The last two sentences that you complain about are on a two-page spread: "As a policy writer, I would say that a dog has permission to eat dog_chow food and a cat has permission to eat cat_chow food. In SELinux we would write this rule in policy, as shown below."

comment 9y ago · link · parent

This is a repost (syndication?) of a blog post at:

http://blog.revolutionanalytics.com/2017/02/finding-radiohea...

which is a summary of a blog post at:

http://rcharlie.com/2017-02-16-fitteR-happieR/

I didn't know that Spotify has an API. I see mention of a rate limit in the docs, but I can't find the actual limit. If I want to sort the tracks from albums released in a given year (say, ten to fifty out of a thousand-album collection) by Spotify popularity, will the limit get in the way?

comment 9y ago · link · parent

Ah, the downloaded file didn't have a .tar extension, and looking at the file with the head utility made it seem like it was just a single TSV file. It is in fact a TAR file that expands into 1,699 .vels files.

Thanks for the explanation.

comment 9y ago · link · parent

I followed the links to this page:

http://home.dtm.ciw.edu/ebps/data/

When I try to download the TAR files, I'm sent to a Google Drive page where the download button gets a single 5 MB file.

comment 9y ago · link · parent

In another post, the author mentions a particular Pioneer Blu-ray drive that he uses with his Mac. Are they all pretty much the same, or are some models preferred?

comment 9y ago · link · parent

Interesting to see screenshots of LCOV. I'm hoping to get an intern to work on test coverage this summer, and I wondered whether LCOV is still current. Looks like the latest release is from December 2016.

comment 9y ago · link · parent

Last I checked, the browsers vary in their support for color management. Try a quick test at a page like this before drawing any conclusions from the canary image:

http://cameratico.com/tools/web-browser-color-management-tes...

comment 9y ago · link · parent

I can't remember the last time I thought that my terminal was too slow, except maybe when I tried that Electron-based program a while back (Hyper, I think it was). My priorities are more like the following:

1. Stability. I crashed Alacritty thirty seconds after opening it; possibly related to issue #12.

2. Emulation correctness. In Terminal.app, the cursor often gets out of sync when I "turn the corner" (i.e., backspace across a line boundary).

3. Font rendering. Text in some terminals just looks ugly.

4. Features. Alacritty doesn't seem to show the number of rows and columns when I resize. Scrollback!

This looks like a really interesting project, but it seems really strange to make performance such a high priority. I tried the find /usr test, and it seemed equally fast in Terminal.app and Alacritty.

comment 9y ago · link · parent

I looked into succinct data structures last year in the context of encoding a list of offsets. Alex's blog was one of the launching points, and I also came across Daniel's FastPFor repository.

There are some really interesting approaches to compressed data structures that preserve fast random access. This comparison of less exotic encodings was a good read too:

http://www.stepanovpapers.com/CIKM_2011.pdf

comment 9y ago · link · parent

FWIW, Go and Rust are 16 and 43, respectively on the TIOBE index:

http://www.tiobe.com/tiobe-index/

A Github search turned up 2,658 Go repositories with more than 100 stars:

https://github.com/search?l=go&q=stars%3A%3E100&type=Reposit...

compared to 348 Rust repositories:

https://github.com/search?l=rust&q=stars%3A%3E100&type=Repos...

Notably, Docker has more stars than Go itself.

Edit: you may also be interested in IEEE Spectrum's interactive list of the top programming languages:

http://spectrum.ieee.org/static/interactive-the-top-programm...

With the default parameters, Go and Rust are 10 and 26, respectively.

comment 9y ago · link · parent

The bytecode interpreter I test has over a thousand instructions, because much of the standard library functions are baked in. I asked a colleague whether it made sense to convert to wordcode. He thought it might: simpler decoding, less branching, and easier alignment. I think code size would go up, but not by much.

Really interesting to see this come to Python. Thanks for mentioning it.

comment 9y ago · link · parent

I tested support for the Islamic (Hijri) calendar last year. The tabular variant can be handled at the locale level for the most part. The observed variant, on the other hand, is a bit of pain, as it depends on whether someone claims to have seen the new crescent moon (hilal).

Since a lot of people depend on Saudi observations, I imagine this will be influential. People grumble about Saudi Arabia, but they set the trends. They're kind of like California that way.

comment 9y ago · link · parent

Although I think the author fairly summarizes the Stallman/FSF position on NoDerivs, here are a couple of quotes from gnu.org for background (presumably fair use, NoDerivs notwithstanding):

"Works that express someone's opinion—memoirs, editorials, and so on—serve a fundamentally different purpose than works for practical use like software and documentation. Because of this, we expect them to provide recipients with a different set of permissions: just the permission to copy and distribute the work verbatim."

https://www.gnu.org/licenses/license-list.en.html#OpinionLic...

"The second class of work is works whose purpose is to say what certain people think. ... To modify them is to misrepresent the authors; so modifying these works is not a socially useful activity."

https://www.gnu.org/philosophy/copyright-and-globalization.h... (excerpted from the book under discussion, Free Software, Free Society)

Edit: the second quote is from the book, not first.

comment 9y ago · link · parent

Previous discussion, with comments from Mike Pall and Patrick Walton:

https://news.ycombinator.com/item?id=4053969

Github issue, which Mike said "is up for takers":

https://github.com/LuaJIT/LuaJIT/issues/38

comment 10y ago · link · parent

The problem of inconsistent URL parsing doesn't just apply to browsers. This story prompted me to look for "What every web developer must know about URL encoding," which was posted a while back:

https://news.ycombinator.com/item?id=5930494

Unfortunately, the blog post is 404. Here's the most recent version from archive.org:

https://web.archive.org/web/20151229061347/http://blog.lunat...

comment 10y ago · link · parent

Ah, that explains why the executable is so large (14 MB, compared to 650 KB for jq).

That v8 crate looks interesting. There was a post a while back about Neon, for writing Node modules in Rust:

https://news.ycombinator.com/item?id=10786411

comment 10y ago · link · parent

The email references BCP 128:

https://tools.ietf.org/html/bcp128

"any application that defines an FEC that does not take measures to prevent the values 0x4 and 0x6 from occurring in the first nibble of the payload may be subject to IP ECMP and thus having their flows take multiple paths and arriving with considerable jitter and possibly out of order."

comment 10y ago · link · parent

A few things I notice from skimming the paper and perusing related sites:

1. Although the source is available free of charge, CompCert is not free software. I couldn't find pricing on the AbsInt site or the North American vendor's site ("Ask for a quote").

2. Currently targets IA32, 32-bit PowerPC, and ARMv6.

3. Covers most of C99, except VLAs and certain abuses of switch statements (e.g., Duff's device).

4. Faster and smaller code than GCC -O0, reasonably close to -O1 and -O2.

John Regehr points out: "If we want better code out of [GCC et al.] we can turn on their optimizers, but at that point they would fail to be capable of translating 1,000,000 random programs without miscompiling a few times."

http://blog.regehr.org/archives/1052

I'm less inclined to use C as time goes by, but for the embedded market that CompCert targets, it seems like a really useful tool.

comment 10y ago · link · parent

It seems that pieces like this are intended to sway either the president to withdraw the nomination, or the Senate to reject it. I gather that both are quite rare:

http://www.senate.gov/artandhistory/history/common/briefing/...

Most recently, John Tower was rejected in 1989, and Tom Daschle withdrawn in 2009.

comment 10y ago · link · parent

I'm not sure where the C89 in the submitted title came from. This is for SubC, "a simple subset of C." This README describes the many differences:

http://www.t3x.org/subc/README-current.html

comment 10y ago · link · parent

This is really cool. I'd like to see a lot more in the test directory, though. Can any MSFTies here describe how this is tested?
1
171819
26