Better HN
topnewbestaskshowjobs
Log inSign up

capableweb

37,790 karma · joined Sep 7, 2019 (7y ago) · 9,208 submissions

Curabitur pretium dui sit amet quam pharetra, at condimentum turpis auctor. Maecenas vitae varius sem. Sed vel ante massa. Nulla a leo est. Morbi quis pulvinar nulla, et imperdiet nibh. Curabitur varius felis tempor nisl vulputate, id accumsan libero placerat. Sed mi odio, auctor ac lacus vel, sollicitudin mattis dolor.
Submissions

comment 6y ago · link · parent

What languages have you tried REPL driven development with? As far as I know, Golang doesn't have a REPL that is connected with your editor so you can evaluate inline code and Golang is not made for REPL driven development either, so you have bunch of implicit state and you can't overwrite function definitions at runtime either.

I think you need to have a language (or structure your particular program in a way) that is really made with live-coding in mind for it to actually give you any benefits, like Smalltalk or Clojure and similar. Otherwise it's just adding another step to reach the real program you're running.

Edit: using your example as an example here, hope you don't mind. A program made with REPL driven development would have way less code in the main function, in order for you to test the code outside with your REPL. The `StoreGame` function would accept a data-store + the argument you have now, so at development-time, you can pass it arbitrary stores. And similar changes.

comment 6y ago · link · parent

Pretty easy to understand if you understand how risk-averse big corporations are, and how the image of BitTorrent has been forever polluted by "but, it's copyright infringement!".

Anything mentioning or using BitTorrent is scary for these huge companies, because it's associated with piracy.

Sure, your deploy times to your container fleet can be 70% faster, but if you're using BitTorrent, it'll be very hard to push that through leadership.

comment 6y ago · link · parent

This is exactly the use-case for Content-Type and Accept headers. The client and server negotiates what type of content they can receive/send, so if you're sending application/json as the Accept header, you can only handle application/json, if you only send text/html in the header, then only HTML. If the client understands both, you do application/json,text/html. with the order signalling preference.

Any serious framework would be able to handle this without any hiccups.

comment 6y ago · link · parent

Seems completely excluded, not even mentioned together with the rest of the JVM languages in the "How Technologies Are Connected". My guess would be that Clojure developers generally don't use Stack Overflow as much as others, so usage over there is low enough to not be a mark on their radar. Rest assure, nothing has drastically changed from last year, the same people who loved Clojure then, loves Clojure now :)

comment 6y ago · link · parent

Seems to be degrading since I first tried one hour ago, so nothing been fixed. Most likely the edge servers are not as great as they are made out to be, so we're seeing wildly different results depending on the location/edge server you're connected to.

comment 6y ago · link · parent

Maybe that is, but one can think of a number of ways for ISPs to work around that. Quick thought: if the ISP is also your DNS resolver (which is the default for most people), check if there been a query for fast.com and if so, stop the throttling for five minutes. After those minutes, start throttling again.

comment 6y ago · link · parent

Yeah, Auth0 is doing a good job hiding it, seems they are not super hyped about the website being open source.

comment 6y ago · link · parent

On the bottom-left edge of the text area/editor, there is a tiny black play/triangle icon. Clicking that applies the changes.

comment 6y ago · link · parent

"Never underestimate the bandwidth of a truck full of hard-drives driving down the highway" or however the saying goes. Latency is extremely long, but the bandwidth is crazy once it's arrive!

Edit: Original quote (seems I accidentally modernized it a bit):

> Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway – Andrew Tanenbaum, 1981

comment 6y ago · link · parent

The website source is here: https://github.com/jsonwebtoken/jsonwebtoken.github.io

I've been running a local copy since last year sometime, when the website went down when I needed it. I've also stripped away all the annoying things from the website to just get the debugger. Very easy to do!

comment 6y ago · link · parent

Parent seems to talk about unpacked. I'm also getting 356.24 KB transferred but whole 957.53 KB of unpacked data, which is absolutely crazy for a static page with no interactivity nor media.

comment 6y ago · link · parent

I'm not sure what you're trying to say here? Only one of these is a valid JWT.

comment 6y ago · link · parent

That makes sense, think there been evidence of ISPs throttling connections, except for speedtests, in the past, so would make sense. My own ISP also used to throttle Steam downloads for a couple of years, until suddenly they didn't.

comment 6y ago · link · parent

Your IP address (which is "owned" by your ISP) has a location assigned to it, usually the closest "router" run by your ISP. Depends on how your internet infrastructure looks where you live, but where I live, the map is off by ~3.56 km (~2.21 mi).

comment 6y ago · link · parent

Don't think you can compare those two, as they are different things. Even if Cloudflare "relies more on their own infrastructure", they still have to have peering agreements with others, otherwise they can't accept/send traffic.

More likely, Netflix has better infrastructure and better peering agreements, than Cloudflare. Which is kind of surprising, since Netflix is supposedly a media company and Cloudflare is a "internet" company.

comment 6y ago · link · parent

I thought it was gonna be a public dashboard of transfer bandwidth globally in the cloudflare network, so domain could have been more descriptive. How about "speedtest.cloudflare.com"?

comment 6y ago · link · parent

Seeing the same so most likely on cloudflares side.

comment 6y ago · link · parent

Something seems severely wrong, either on Cloudflare's side, or on the way to the cloudflare edge that the test is measuring against. It's a shame as the UI gives you lots of information on just one page, especially like the jitter measurement which most speedtests don't seem to do anymore.

speed.cloudflare.com: 57.7Mbps (Server location: Madrid)

Fast.com: 320Mbps

Speedtest.net: 528.39Mpbs

comment 6y ago · link · parent

In the "Buffer A" tab there is a SAMPLE_COUNT variable. Turning that to 1 will probably enable you to run it on your potato of choice, as long as it has a browser.

comment 6y ago · link · parent

Thanks for the correction! Sad to hear. Last time I checked, it was just "advisable" to not use it...

comment 6y ago · link · parent

Not true, also runs via shadertoy: https://www.shadertoy.com/view/3sBBRK

But it's missing the GPU Synthesizer

comment 6y ago · link · parent

So strange they chose Slack and Discord when they had a perfectly fine IRC server (that now is deprecated). Instead of trying to improve IRC (either the protocol or any clients), they chose to go with closed-source hosted platforms. Damn shame.

comment 6y ago · link · parent

It's one thing to do regular code deploys and there is no harm in doing it on fridays, if the code happens to be ready. If something goes bad, you rollback, which hopefully is automatic.

But, pushing features out the door is different than just deploying, so seems this is what happened. Then it doesn't matter what day you release your unfinished feature, it's gonna cause bad times.

comment 6y ago · link · parent

You pull (or clone) by doing `git clone $path` where $path can be almost anything you want. A network path over NFS, a ssh path, and more. And if it's not supported, you can add support for more protocols, like IPFS, secure scuttlebutt and many more.

comment 6y ago · link · parent

Or, yet another example of how the universal search bars poisons the URL handling in order for someone to drive up usage of their search traffic. Two views of the same coin.

comment 6y ago · link · parent

Interesting, seems the "comments>0" op is undocumented, couldn't find it anywhere on the algolia page. Is there a page with all the different operators you can use?

comment 6y ago · link · parent

I wouldn't say Common Lisp is a esoteric language. Esoteric makes me think Brainfuck and other similar languages. Common Lisp and lisps in general are languages you can be productive in, in a "building a product" sense, which you cannot say about most esoteric languages.

comment 6y ago · link · parent

Not the author but done similar things (patching something rather than migrating away from it). Usually it's way more work to migrate away than just patching it again to fit your use-case. Once you find yourself having to patch it too often, you start thinking about migrating away. Then the research slowly begins ad-hoc until it hits "seems we need to migrate away now, otherwise we're spending too much time working around something / fixing their broken shit", that's when you sit down and decide to migrate away from it.

Also would depend on how long time you think the application will be around. You're building an MVP to evaluate something? Just hack together whatever will work (then throw away). You're maintain software for a library/archive that will most likely stick around for a long time, even if they say it's just temporary? Do decisions that will help in the future, always.

comment 6y ago · link · parent

> Sure, let's pretend images in email are a new development and should be stopped.

What? No. No one is arguing that...

The only thing I'm refuting in my previous comment is "Some email clients try not to do this, but that's actually somewhat recent" which seems to indicate chrisseaton thinks that email clients that don't load images is a new thing. So the idea is that first we had email clients, then the email clients added the option to hide images.

When in reality, email clients started out without images, then they added images.

Way to reply to a comment without reading the context and subsequently completely miss the point.

comment 6y ago · link · parent

Email clients started out without embedded images. Images came after the initial email implementation. So one could say that displaying images in email clients is rather new. Also, most if not all email clients have the option of disabling Inline images.

Email clients, just like browsers, are made specifically to handle untrusted user content. That then some people/clients allow information leak, is another thing. Just like websockets in modern browsers.

1
278279280
307