Better HN
topnewbestaskshowjobs
Log inSign up

codemac

4,446 karma · joined Dec 3, 2008 (18y ago) · 1,145 submissions

http://codemac.net -- rarely updated

I am bad at collecting karma. I'm currently working on Human Data/Alignment Research @ OpenAI.

Previously Storage @ Facebook, Google, Pure Storage, Igneous Systems, IronPort, and NetApp.

What is the most important problem in your field, and why aren't you working on it?

email: j@codemac.net

[ my public key: https://keybase.io/codemac; my proof: https://keybase.io/codemac/sigs/4zxtt61QOyT7_BA8DDCHlGlNCkE2rw-VsKZclDl1U20 ]

Submissions

comment 10y ago · link · parent

This used to happen to me when I would run poorly secured sites for personal stuff. Super annoying, taught me to take even personal stuff more seriously.

They'll hack in and then just add affiliate / ad links hidden everywhere from view so they can try to raise the google ranking of some other site (like one that sells viagra). Google has done much better recently fighting this type of reputation spam.

comment 10y ago · link · parent

It also highly depends on your office culture around email, and how it affects your personal workflow.

At one job, it was like writing letters to fellow warriors across continents. You'd try to be thoughtful, taking a day or more to write really concrete and informational pieces. At another job it was basically the office instant messenger, replies were expected within 10 minutes of almost all email. Having direct reports changes a lot of how you're communicated with as well.

Right now I've been using notmuch+org-mode (to do list management that can link to emails, files, websites, etc), and so now I file tasks called "Read X" if it doesn't need immediate response, or archive/mark as read if I don't need to read it. Things that take less than a few minutes I do right away.

Once you take things as merely inputs to your personal management system, you no longer have to worry about how an app pushes it's workflow on you, you have an external one. This is why text files/physical papers are amazing - it's the lack of an interface that lets you organize things in whatever fashion makes sense.

comment 10y ago · link · parent

Wonderful! Thank you :)

comment 10y ago · link · parent

Texinfo has actually not been so bad to use, though ugly as sin. Scribble / Skribilo (racket & guile) are both excellent, but have some sharp edges. At least for HTML I've found that using a basic subset still hasn't broken.

I use org-mode pretty exclusively, but it has the opposite problem of what you mention - it requires macros in your editor (maybe a set of Editor MACroS if you will..). This makes in unusable for anyone outside the emacs lifestyle.

comment 10y ago · link · parent

Is there an emacs client?

comment 10y ago · link · parent

GCC

comment 10y ago · link · parent

This makes me reminisce, we had lots of bug trackers that were close to having these kinds of features when git was first hitting in the mid-ish 2000's.

My favorite was Simple Defects: http://syncwith.us/sd/

comment 10y ago · link · parent

The sad generalizations are in E.2

Things like stating that "evolution has stalled" while also recognizing that the format is stable is hand wavy when you consider we're discussing things that go over the wire and even end up on disk. Yes, stability should be a goal.

The real difference between CBOR and MessagePack is that CBOR wants to be "schemaless" in the applications themselves instead of just on the wire. They hold up json as the example format for something that doesn't require schemas, and yet I see "json schemas" being published[0], and even people trying to standardize the schema format[1]! Looking at any modern JSON API would tell you that "schemas" in the xml sense are not required, but applications all must be very knowledgeable of the format.

Having a data type for "PCRE" is just insanity on the wire, and I can't imagine the type of API you'd be publishing where you would accept URLs or Regular Expressions or Text or Binary, AND want to be able to decode them into proper types in memory all without applications on both ends knowing that ahead of time.

Which brings me back to my initial point: CBOR is not just a "standardized Message Pack", it's a very different approach to what they think the applications on either end of a protocol should be doing.

[0]: http://json-schema.org/

[1]: tools.ietf.org/html/draft-zyp-json-schema-03

comment 10y ago · link · parent

What makes it a standardized version of Message Pack?

Message Pack has a specification that is well documented[0] and even the rfc you refer to specifically states it has different goals (though, eliding specifics with pretty sad generalizations)[1]

[0]: https://github.com/msgpack/msgpack/blob/master/spec.md

[1]: https://tools.ietf.org/html/rfc7049#section-9

comment 10y ago · link · parent

This page is broken on firefox?

https://i.imgur.com/wxSi05R.png

comment 10y ago · link · parent

Message Pack[0] is another protocol that follows this very successful simplicity.

A leading thought in a lot of this is the "unset and a zero value are equivalent". It simplifies a lot of what the serializer and deserializers have to understand, and places the burden on code generation or libraries rather than complex serialization. It was unnatural for me to think this way, as I take the opposite for memory (record whether something is set or not, don't just assume it equals zero), but on the wire this makes for very compact and backwards compatible messaging.

Cap'n Proto[1] I have not played with, but would love to learn more about to see the advantages and disadvantages between protobuf, msgpack, and capn.

[0]: http://msgpack.org/

[1]: https://capnproto.org/

comment 10y ago · link · parent

What do we do about censorship? When countries block all foreign HTTPS?

It really feels like websites should know what transport they're operating on (secure vs unsecure) and present what information they can reasonably with unsecure. Though turning every website into a "modal" thing is also a pretty high order.

comment 10y ago · link · parent

Nah, I think they don't have the time to get up to speed enough to even understand what it means to have their IP tracked, let alone understand the lengths they would have to go to avoid being tracked.

Most of my non-technical friends are super concerned, and frequently tell me how scary it is not knowing what to do or how to avoid it.

It's an active role the current ad-based industry takes to convince their users that the tracking either doesn't matter or somehow empowers the user, which are both demonstrably false.

comment 10y ago · link · parent

Ohhhh yes, the one that really inspired me was this super detailed org-mode workflow:

http://doc.norang.ca/org-mode.html

The part that was best for me was someone taking so much time to document, screenshot, and close the loop on most parts of managing information with org-mode.

I hope it treats you well!

Something I would also recommend: try to setting things as file-local variables or org comments at the top of an org file instead of dumping in init.el. Setting the configuration globally can make things confusing when you're just learning things.

comment 10y ago · link · parent

Well, many of these have prohibitive application fees that take a lot of work to get waved. I think that's a bigger immediate barrier than figuring out how you'd even pay for the schooling.

I know I didn't apply to several schools merely out of exhaustion of trying to figure out how to not have to pay the application fee.

comment 10y ago · link · parent

...

submarine for EMC + LANL.

Missing all kinds of things about the storage market, and definitely "enterprise-y" focus with a significant number of markets missing, from SDS to Cloud to AFA.. please do not read this article if you want an overview of what's wrong with POSIX and where the industry is moving.

comment 10y ago · link · parent

Huh?

Emacs, Guile, and the common lisp in this project have doc strings?

What implementations are you referring to, and what features do you think they're missing?

comment 10y ago · link · parent

This is a pretty useful feature for something that regularly copies large files/disks you'd want to see the progress of, in fact I'd say it should have been default behavior for years.

I'd make some crude comment about cargo culting, but do you have an explicit complaint? dd itself is derided by the plan9 crew for many more reasons than a progress bar, and the cli arguments are obtuse because they're a joke.

[0]: http://www.catb.org/jargon/html/D/dd.html

comment 10y ago · link · parent

Should not be posted without a volume warning, had turned up my volume for some David Bowie RIP...

rip my ears.

comment 10y ago · link · parent

Org-Mode has a similar layout for it's org-babel stuff in emacs. So glad to see something similar that's outside of the emacs ecosystem, would love to get an org-mode exporter / importer for beaker notebooks so I can collaborate with coworkers on higher order transformations.

comment 10y ago · link · parent

Parenthesis are pretty bomb-diggity as well.

comment 10y ago · link · parent

> [commenting the sha] makes this a moot point anyway.

No, it does not. Emacs has gone through 4 version control systems, I can't imagine how they'd refer to it in a comment. As someone who's been through several, I guarantee you that git is not the final frontier of VCS.

Also - if you intend the comment to communicate to your team (as this commit does.. did you read it?), then your other comments also make little logical sense.

comment 10y ago · link · parent

Is this how you document your code?

1. Write comment about code, and commit it.

2. Delete comment about code, and commit the removal.

I mean hey - your team mates should be able to use a VCS right?

Facetious workflows miss the point, judgment can be used to determine what should be commented out vs not.

I strongly prefer source code that is well documented, not at some point in the past, but right there at HEAD/master/main/tip/whatever

comment 10y ago · link · parent

Committing commented out code means you're trying to communicate with comments in your code. English isn't the only language that's useful in comments, especially when trying to document something of computable logic.

If you have any comments in your code at all, you could make the same argument about "not knowing how to use your version control system" as everything could be in commit logs.

And please define "team-friendly", it is absurd to suggest that the git cli makes anything friendly.

comment 10y ago · link · parent

Or even save all your open tabs as a MAFF archive! Then you can read them offline. I like to add them to my todo list and then read them when I turn of my networking so I don't get lost down a hacker news rat hole. Dunno if chrome supports that, but Firefox (obviously) does[0].

[0]: http://maf.mozdev.org/

comment 10y ago · link · parent

I watched it and I thought it was cute. I would like to hear more about what made you so furious - it's a perspective I didn't get while watching or with other people I spoke with after. Maybe I'm already disney brain washed.

comment 10y ago · link · parent

Google Cloud Storage does not support append.

One reason these things don't support append is at some point they need to choose the "version" of the object. Usually this is done when an object upload has completed.

If they allow arbitrary appends to objects, then they would have a hard time assigning any type of ordering to them, as the concept of an object being "complete" would be thrown out the window.

(EDIT: and what does it mean to have a GET on an object, if you don't know the latest version to return?)

I think something like this could be implemented, but it would probably be an entirely different product that supported some specific traditional file operations (rename, ftruncate, link, etc) but had different scaling properties.

comment 10y ago · link · parent

> I wrote my own mode for running and capturing the output of command lines, which I have been happily using for the last 9 months.

Whoa sweet! Any chance you'll be sharing? I think a lot of my shell usage could move into that type of mode if I could configure it to use rc syntax.

PS: comint mode hacking is going moderately well :) Next up is to figure out this list of completion function in shell-mode and I think I'll be done!

comment 10y ago · link · parent

> For example, file-name completion (the tab key) in shell mode in Emacs has been programmed to use the backslash character to escape, e.g., spaces in file names (which are part of the base system on OS X). But rc does not grok the backslashes: it uses a different convention to quote characters like spaces, and no one as far as I have been able to discover has modified shell mode to use rc's convention.

It's quoting is it's power!

And I fixed shell-mode in emacs for myself with the following:

https://github.com/codemac/config/blob/master/emacs.d/boot.o...

The remaining function to fix is comint-quote-filename - of which you'll see commented out there. It's slightly different from the shell-quote-command override in that it needs to only be enabled during shell-mode and it needs to know when to skip quoting all together.

Don't fear, I'll try to get it working and send it to you (and on my github). I truly enjoy rc and emacs simultaneously, so hopefully any discoveries I make can help you if you'd like them. If not - it sounds like you want to switch to eshell anyways, which could be great (albeit will have bad things as well as it doesn't support i/o redirection).

comment 10y ago · link · parent

Use rc instead. My life has gotten so much better since I gave up on other shells.

http://tobold.org/article/rc

http://github.com/rakitzis/rc

1
252627
39