Better HN
topnewbestaskshowjobs
Log inSign up

gshrikant

1,043 karma · joined Mar 20, 2014 (12y ago) · 132 submissions

Submissions

comment 7y ago · link · parent

Actually a Forth written in a language apart from English would be a cool idea. The 'words' model maps directly to natural languages and would be straightforward to apply to other languages.

comment 7y ago · link · parent

I'm probably being a blockhead but I didn't quite get how the testcase macro is used in instrumenting coverage. Can you explain that?

comment 7y ago · link · parent

I don't think that's harsh for the title of the video as posted on HN. Like many others interested in programming, I've tried teaching it to my loved ones and come back with the understanding they either they don't need to or they don't care. A lot of programmers I know tend to assume that other people need to know this stuff or that it is important to their lives somehow which is a narrow view of the world to say the least. My girlfriend might listen to me talk about programming but assuming that she needs to be brought into the fold _somehow_ feels selfish to me. Again this is all subjective and anecdotal. I'm sure the talk would be useful to someone who knows someone who is interested and is just looking for the best way to teach them.

comment 7y ago · link · parent

You might be interested in etckeeper [1].

[1] https://joeyh.name/code/etckeeper/

comment 7y ago · link · parent

Rightfully so. Part of the problem is the way that we speak about the technology - calling it 'artificial intelligence' when the underlying technology does not resemble true intelligence at all. This raises expectations and lets people use AI as a dumping ground for infeasible ideas.

comment 7y ago · link · parent

I agree, it is not the same sandbox as for example, browser sandboxes which restrict capabilities for multiple tabs to a given set of resources. However, its closer to KVM or Docker than to VirtualBox. The host and the 'guest' appear to be much more tightly integrated than in a full virtualized environment.

comment 8y ago · link · parent

I'm sorry of this is a trivial question but what does open coding mean? This is the first time I've heard of that term.

comment 8y ago · link · parent

Unfortunately, that's not entirely accurate. The problem with language level benchmarking is that the benchmarks are only as good as their implementations and while I agree that different languages encourage different kinds of idioms it seems only fair to use the same data structure/technique when the language offers that choice (as Rust does with intrusive data structures).

The Rust program was not a faithful reimplementation as the author concedes. I expected a more closer comparison given the somewhat broad title of the article. Claiming the perf benefit came out of the thinking encouraged by the language is okay but debatable.

comment 8y ago · link · parent

I've been on something of a language tour recently - trying out C++, Typescript, OCaml each for a couple of weeks just to get a taste of living in each ecosystem. I haven't been actively following Rust beyond reading Hacker News articles (of which there are many) about people liking the language.

One of my pet peeves with several "newer" languages that I've looked at is that users don't usually talk about the ugly parts. You can try out C++ for a week visiting forums and r/cpp and you find out fairly quickly what the pain points are and what typical workarounds look like. At that point, it is up to you to decide to what extent you can live with those downsides and where to tread lightly. Same for C, Python, OCaml etc.

To be clear, I don't mean that you should go looking for the bad parts in a language but I do believe you should be aware of them before you invest a lot of your time in it. Unfortunately, a lot of the language love blog posts do not talk about the pain points of the language and what kind of problems it isn't well suited for.

I like Rust and I love several features that Bryan talks about (algebraic data types being one of them) but I would love to read a more balanced evaluation of the language - focusing on aspects which are rough around the edges and expected future improvements.

comment 8y ago · link · parent

Can you point me to a resource with details about this? I'm relearning C++ and a comparative evaluation of a language feature like that would be very useful.

comment 8y ago · link · parent

I didn't understand the references to TLS (with GMail, for example) and why the goverment likes that better. Is there previous legal precedent which makes TLS more vulnerable or does the protocol itself make snooping on it easier?

comment 8y ago · link · parent

I meant the fact that you're actually reinterpreting bits and not really copying them somewhere.

comment 8y ago · link · parent

I'm curious, AFAICT Linux uses -fno-strict-aliasing with GCC which promises not to enable strict aliasing based optimizations even at higher optimization levels. But they also rely on the GCC blessed behavior of union based type punning which is redundant in that case.

I suppose union based type punning makes the intent a little clearer (vis a vis memcpy) but that's a weak argument at best.

comment 8y ago · link · parent

Not sure about the accuracy of this (or even the original source) but interesting tidbit from what I've read was that driving on the left side of the road is a remnant of British colonial times which lives on in the modern Commonwealth nations (Australia, India etc.).

comment 8y ago · link · parent

Exactly this. Science is supposed to be reproducible. Computer science is much more easily reproducible than many other disciplines and it is just sad that many papers don't publish their data/code to reinforce their conclusions.

I could understand Facebook/Google/BigCo. doing so when the data in question might be internal implementation/tech but the trend is far more prevalent.

Sharing experiment data/parameters would not only help people verify your results but also help students learning how to design and carry out experiments.

comment 8y ago · link · parent

Pledge (previously `tame`) did use bitmasks in its earlier iterations. See Ted Unangst's post about it: https://www.tedunangst.com/flak/post/string-interfaces

comment 8y ago · link · parent

Not a very insightful comment but I really like the way OpenBSD names system calls - both `unveil` and `pledge` are great, descriptive Unix-y names for what these system calls do.

18.

Ask HN: Health and Medicine book recommendations

2 points · by gshrikant · 8y ago · discuss

19.

Pledge and Unveil in OpenBSD [pdf](openbsd.org ↗)

125 points · by gshrikant · 8y ago · 34 comments

20.

The Really Big One (2015)(newyorker.com ↗)

1 points · by gshrikant · 8y ago · discuss

comment 8y ago · link · parent

Looking at the examples and how the product is spelled (British English) it seems like the product would be restricted to India.

comment 8y ago · link · parent

This is a strange article with a regular message but a clickbait title just to grab attention. I feel like either the author doesn't really understand mainstream humor of a primetime TV show like 'Friends' and/or is trying too hard.

comment 8y ago · link · parent

First, personal preferences aside, I'm sure that the team would have worked hard on the redesign so congratulations on launching that!

Second, while I appreciate the opt-out option, is it here to stay or is it a fallback mode until the entire site is flipped over to the redesign? I can't imagine the former being the case - having two teams maintain two fundamentally different UIs doesn't seem viable in the long run. If so, to what extent is the rollout of the redesign influenced by the number of people opting out or the opt-out feedback?

comment 8y ago · link · parent

Doesn't the compiler produce a warning by default (on comparing a `char` and `int`, for example) when using -Wall?

comment 8y ago · link · parent

Thanks! However, I still don't understand this completely. So the sizeof is there just to force evaluation of the comparison and because == can only be used among compatible types the compiler would warn? Why is the !! necessary then wouldn't sizeof(int) be enough as a "true" value?

comment 8y ago · link · parent

What exactly is the typecheck macro doing here? I get that it compares the sizes of two pointer values but I don't know why and I feel like there is some C standard nuance involved here that I don't understand. Also, is the `sizeof` used to force evaluation at compile time?

comment 8y ago · link · parent

I’m only an amateur Python programmer so grain of salt please.

Python is excellent at being intuitive and readable for the original programmer or when you’re skimming the code looking for broad logic.

Not so much for the maintainer. The programmer needs to keep a lot of state in their head to make up for the type system. If you don’t have good tests, it is even harder.

comment 8y ago · link · parent

Github pages + Bash + Python script. I have a very simple page layout for posts. A drafts directory maintains ASCIIDoc files for posts I'm writing.

After writing I run `post.sh` with the file as the argument. It invokes a Python script which generates the HTML and puts it in a directory for published posts sorted by date/month/year (e.g. published/2018/01/29). The Bash script generates a directory/link listing and an index page for the blog roll, followed by a "git push".

comment 8y ago · link · parent

That example doesn’t reflect the real world differences in page load time, however. IMO the load time arbitration doesn’t belong in the “search” engine. If your search engine fetches 10 fast loading pages but lacking the depth of information you need it loses utility.

The tricky thing is also the fact that Google does not inform the user that it is prioritising the faster loading pages instead of the pages with the most accurate match. This is a little dishonest too.

comment 8y ago · link · parent

No, I believe it is for Christmas.
12345