Better HN
topnewbestaskshowjobs
Log inSign up

mapgrep

6,331 karma · joined Sep 23, 2010 (16y ago) · 813 submissions

Submissions

comment 5y ago · link · parent

>The whole point of running inside another ecosystem is to reuse existing solutions

Ya totally, but I think OP was hinting at a fundamental tension between this benefit of interop and the desire to be functional where Java is (generally) not. Clojure lets you reuse the wonderfully huge library of Java solutions -- but those solutions are (generally) not written with immutability in mind, which I could see becoming an issue when you're trying to write a concurrent app. I suspect that's what the java.lang.Object reference was about, although obviously I'm not sure.

>Many wrappers hide mutability and provide an immutable API. And more java libraries are being written with immutable classes.

All that sounds encouraging....

comment 5y ago · link · parent

Thank you for these comments they are super interesting to me as a relatively new Clojure programmer.

Can I ask two related questions -

1. Reading between the lines it sounds like the mutability issue arises from interop, both in the core code and any dependencies that wrap Java?

2. If yes, curious why did the folks involved did not write native Clojure libraries to eliminate the (worst?) blocking dependencies (or patch the Clojure wrapper libs)?

I ask 2 because my understanding is interop was partly a bootstrap strategy for the language and there was always (I think?) an assumption that the native Clojure library ecosystem would grow and make interop less necessary. Is that not happening enough?

comment 5y ago · link · parent

Adding on the above comment, Daszak’s role in promoting the contentious theory of Covid spontaneously developing in wildlife is widely and credibly documented.

https://nymag.com/intelligencer/article/coronavirus-lab-esca...

Even if you agree with him, it’s fair to point out he had a strong point of view before he ever went on this mission to Wuhan.

It’s also worth pointing out that in at least one way the linked tweet lends credibility to the nyt report: it acknowledges “heated arguments” on the WHO mission.

Finally, if you read the NYT report you’ll see it is building off recent reporting on the WHO trip by WSJ and the Australian Broadcasting Company. The issue of possible (accidental - not engineered by govt) lab origins for this sort of virus, in the past or future, is also a real and widely covered credible issue. There are a lot of comments here alleging an nyt agenda. Maybe you can argue the mainstream press has one, but this coverage is not particularly unusual, either on the WHO trip or Wuhan. (Also, it can be argued the MSM under covered the possible lab origins of Covid for months, scared of being lumped in with people who were saying the Chinese govt made it on purpose.)

comment 5y ago · link · parent

Looks cool. Is it safe to assume it’s just a typo/accident that the codes don’t seem to match here?:

  The sending peer runs:
  
  $ pcp send my_file
  Code is:  bubble-enemy-result-increase
  On the other machine run:
  pcp receive bubble-enemy-result-increase
  
  The receiving peer runs:
  
  $ pcp receive december-iron-old-increase
  Looking for peer december-iron-old-increase...

comment 5y ago · link · parent

What you said is true and perceptive — it is at base like writing the AST - but most of the time you’re just doing function calls with the opening paren shifted to the other side of the function name.

In other words, in Algol like languages you’re typically calling like(this) (or the dotted.equivalent(form)) and in lisp it’s (like this).

You do eventually take advantage of the fact that you’re writing an AST, when you get into macros. But that feels pretty simple once you’re used to the function syntax, since macros just manipulate the resulting structures.

What used to throw me off was the special syntax for lists - ‘(structures looking like this) - but once you get used to using the lisp structure for function calls it becomes clear why and when this kind of quoting is necessary (any time you want a list as data instead of a function call).

comment 5y ago · link · parent

Other than desktops, laptops, embedded systems, phones, and tablets, who cares about boot time......... /s

comment 5y ago · link · parent

Honestly, what do we need POSIX for in 2020? As discussed in the talk, it traces to the age of the Unix wars, when there was a panoply of processors and Unix variants. POSIX is great if you’re concerned with recompiling some C so it works on SPARC and Alpha and POWER, on Solaris, Tru64, and AIX. That world is gone.

Yes, I’m for abandoning pointless standards. There are concrete benefits to systemd - faster boot, comprehensive service management, power savings, memory savings, a consistent interface to changing system state. What is the benefit to sticking with an rc script architecture designed to run a handful of processes on a pdp?

comment 5y ago · link · parent

> Basically, it started out as an init system... But systemd started to expand into its "middleware" position, absorbing vital system functions like udev.

Not true. From the start it was positioned as much more than an init system. This is clear just skimming the blog post announcing systemd http://0pointer.de/blog/projects/systemd.html

Among other things, it talks about:

-deferring launch of some services until they are needed, to speed up boot

-launching additional services and shutting down others in response to hardware changes (e.g. adding a usb device).

-taking some or all socket management away from daemons so that sockets can be ready before daemons are live or daemons can be shut down when there is no activity

-“babysitting” services including through cgroup based process management

-managing (some of the) access to /home and other directories

It’s quite a broad scoped announcement. Toward the end there is a “short list of other features”, numbered, ending at 20. Under “Where is this going?” he writes, “ The feature set described above is certainly already comprehensive. However, we have a few more things on our plate.”

systemd clearly started out as a broad based solution, and reading through that post, looking at the problems it addresses, and considering that launchd and upstart tackled similarly many issues, it’s clear why it is so broad - the world has changed. In the 70s on a pdp 11 it was sufficient to launch some daemons at boot, keep an eye on getty, and call it a day. Maybe ~50 years later a new, more comprehensive system makes sense? When Linux runs laptops and phones that are endlessly reconfiguring themselves in response to network, Bluetooth, usb, when systems are sleeping and waking routinely, when vastly more services run on a single machine, when conserving battery is important, when boot time can be reduced to seconds if things are better orchestrated? “standard ways of doing things” have changed in every other sector of society, basically, why wouldn’t they finally change in OS service management?

comment 5y ago · link · parent

Wouldn’t have to be systemd, macOS has launchd for init, FreeBSD could come up with its own thing. This is a good talk I saw recently (by a FreeBSD contributor) on why these sorts of systems have become more common, and why they seem so sweeping in scope. https://youtu.be/o_AIw9bGogo

(In fact systemd and launchd are so tailored to their respective operating systems that FreeBSD likely would have to do their own init replacement if they cared to.)

comment 5y ago · link · parent

These statements are perfectly compatible with one another:

“ most people that attempt programming will never be a good programmer”

“ all people given the same opportunities will be capable of achieving, if not the same, then comparable results on a given task”

Persistence is exceedingly rare. Falling short of your capabilities is exceedingly common.

comment 5y ago · link · parent

One key impetus for Linux moving to systemd was faster boot time, parallelizing init tasks. Is FreeBSD looking at moving beyond traditional rc script boot?

comment 5y ago · link · parent

People are raising some good concrete objections but I wonder if there isn’t the kernel of a good idea here.

Maybe GitHub should be offering additional services to better help pipe projects into all kinds of app distribution mechanisms. App stores, platform package managers (apt dnf ports homebrew), language package managers (gems pip maven CPAN npm etc), stand-alone installers (dmgs install exe-s), maybe even containers.

These services could form a layer with some autonomy from the underlying project — the author of the project rarely handles alll (or sometimes any) of the distro channels.

Anecdotally I feel like most of this stuff happens outside of GitHub, which is fine and actually good, but maybe there are things GitHub could do to smooth the process? To help the original authors arrange things in releases or set metadata in a way that’s useful downstream to packagers?

But some of it happens in projects already, sometimes for a desktop type app you’ll see a dmg or some other installer right in the project files. This could probably be more standardized.

comment 5y ago · link · parent

I thought these were some very eye opening stats:

“ there are 1.97 cars per U.S. household, but in Des Moines, Iowa, there are 19 parking spaces per household. In Jackson, Wyoming, there are 27. “

The article goes on to discuss how parking lots are major opportunity sites for housing development, especially in suburbs. This worked well in downtown Oakland, where from ~1998-2008 there were 10k units built, many on former parking lots. This has the benefit of reducing gentrification impacts.

comment 5y ago · link · parent

The author of the linked piece has the following background:

“He holds a PhD in biochemistry from Bristol University and previously studied chemistry at Oxford University.”

From the Carbon Brief “about” page. (Click his byline on the linked article and you’ll see he works for Carbon Brief.) https://www.carbonbrief.org/about-us

So he’s a scientist.

Given that you disagree strongly with a well credentialed chemist, are you sure the profession of journalism or the credentials of its practitioners are the issue here?

Also, it’s interesting you linked an article that leans heavily on the authority of Michael Crichton, himself a noted climate change denialist — and a former physician.

It would seem to me poor information and sloppy work crosses many fields. I think anyone who has, say, used very much software in their life would probably agree.

comment 5y ago · link · parent

Mod_perl would more accurately be called a “commonly reverse proxied app server.” Typical setup was to have another Apache instance in front of it handling static requests and reverse proxying app requests.

comment 5y ago · link · parent

All the complaints made about yubikey and webauthn could be made about 2fa 5-10 years ago. Hardware tokens gated by software (ala yubikey + webauthn) are clearly the next step in auth.

It’s an accident of circumstance you even need to buy a yubikey - your iPhone, iPad, laptop, android whatever can do everything a yubikey does. There just needs to be enough demand and time for OS and hardware vendors to come around to shipping and integrating this stuff by default. Suddenly you’ll own 3 or 4 yubikey equivalents without buying any special auth devices.

25 years into the web and our login tools remain pretty barbaric. Maybe in 25 years we’ll have it sorted out. But change is coming. Call it 2fa, webauthn, whatever - regardless of the details username/password auth (on its own) is dead.

comment 5y ago · link · parent

Yes, like the amount of thinking and novel work Rich Hickey out into the immutable but fast data structures in Clojure, the use of mvcc stm for transactions when you do need to share mutable state between threads - it was there from the start. I don’t even pretend to fully understand half of the things going on in Clojure concurrency on a deep level but I find it reassuring that parallelism was deeply considered from the start. And also grew with even deeper models like core.async.

How many languages are there like this? A handful? Erlang, Scala, Haskell, Go.... Java has always been parallel but with pretty primitive concurrency tools, no?

comment 5y ago · link · parent

I have personally found that as you get serious about keeping your own archive of email you need something like fetchmail, but not fetchmail.

I used getmail for years and it is solid. duckerude posted this elsewhere in the thread, where the author of getmail rants a bit about fetchmail. http://pyropus.ca/software/getmail/faq.html#faq-about-why

Once I left Gmail I was interested in something faster and more efficient, because I was using the transfer tool for more than just backup, it became the main way I receive email on my machine. Then the mail gets indexed (for text search) by another program and displayed by a third.

Anyway I found mbsync, which is just this amazing, efficient, very solid transfer program that's been around for many years just quietly doing its job. I almost wrote it off because its homepage is on sourceforge but if you poke around a bit you'll see it is actively developed, there's an active mailing list, etc. I love it. It's kind of interesting how this project I had never heard of just does its job well and works and the program by the semi-famous software pundit whose programming essay went viral really does not (from what I have heard).

comment 5y ago · link · parent

> Curiously, TFA’s only specific example of someone who declined is someone who was pregnant.

This is false. The person you refer to, April Lu, is not the only specific example in the article, just the first. The second is Nicholas Ruiz, who I think it’s safe to say is not pregnant.

comment 5y ago · link · parent

Well, the heat AND the humidity! People joke about this saying but having moved from Texas to SoCal it really makes a difference. (Which is good for California because it’s only getting hotter there...)

comment 5y ago · link · parent

As an ex Texan, I understand the pride behind this statement. But I think what seems to be the underlying premise — we don’t need to change to attract outsiders - captures an essential historic difference between California and Texas culture. It’s dangerous to speak too broadly — california has had its reactionary periods - but on balance I find it historically much more eager to change and evolve, especially socially, in response to outside and unconventional ideas and people. The Bay Area in particular (a tech center) is famous for this. Yes Texas is demographically changing rapidly but the culture of a place changes relatively slowly.

comment 5y ago · link · parent

Yes, California is a very big state and I could imagine for example the Central Valley reaping many more benefits from any persistent remote work or company relocation trend than other states. Hadn’t considered this possibility but it makes a lot of sense.

comment 5y ago · link · parent

Valley money types: “We’re going to Texas because California has red tape, overregulation, and general dysfunction.”

Also Valley money types: “Texas needs to regulate this exploitive type of labor contract California has banned since 1872.”

When people stomp off for greener pastures they maybe should consider what good things they might be taking for granted and leaving behind.

comment 5y ago · link · parent

GEOS was written largely in assembly from everything I’ve read.

Apparently this and other things did not go over well with developers (apparently the apps needed to be done at least partly in assembly too). Wikipedia:

GeoWorks attempted to get third-party developers but was unable to get much support due to expense of the developer kit — which ran $1,000 just for the manuals — and the difficult programming environment, which required a second PC networked via serial port in order to run the debugger.

Even though PC/GEOS is referred to as an "operating system", it still requires DOS in order to load. GEOS and its applications were written in a mix of 8086 assembly (Espire) and C (GOC), both with non-standard language extensions to support the object-oriented design.[5][9]

comment 5y ago · link · parent

The JVM is fast today after 25 years of optimization and some serious improvements in the underlying processors (even with the Moore’s law failure of maybe half that period).

It was not fast at all when the Java hype was peaking in the late 90s. I knew a dotcom era startup that replaced a bunch of Perl with Java and my friends complained it had fewer features and was much slower.

comment 5y ago · link · parent

Helm comes with free backup. Fully encrypted so only you can access. Still I’d love to turn it off. I have all my email on my laptop, which is itself backed up. I only keep some weeks worth on the Helm to let devices download.

comment 5y ago · link · parent

I think you raise really valid points, even as someone who uses linux as my primary work OS day to day, and free software on the server as well, as well as free programming languages/environments/platforms.

It's a tradeoff. And I think for a while there in the midst of the history of free software an idea took hold that we could have our cake and eat it too -- that you could provide free software (as in Free software, capital "F") AND earn revenue as a for profit business to profitably sustain a company and extend its ability to contribute free (Free) code.

I wonder if recent history has shown that this is unrealistic. Maybe we should go back to seeing free software as almost accidental, as a wonderful anomaly -- when incentives are aligned correctly, you can subsidize its development, through government funding, or university research, or nonprofits, or hail mary last-ditch business efforts, or self interested loss leading spending by corporations (a bank contributing patches to a Java library, for example).

(I don't think this contradicts the goals of GNU, by the way. Because successful Free software tends to just keep going and live, and even seeming moribund code can be resurrected at any time because the code is out there, I think we could end up using free software for a higher and higher percentage of our computing lives as time goes on, even if its funding is ad hoc and unreliable on balance.)

comment 5y ago · link · parent

I use Helm for email. It’s a silent little server in my living room routed via Amazon (using a TLS cert that lives in my living room). I’d say about every three or four months it goes down for 5 minutes if I need to reboot my wifi router.

I use it for privacy (am a fan) but I feel pretty smug knowing I’m getting better reliability too. At least this month :)

No affiliation with the company.

https://www.thehelm.com/

12345
28