HNHacker News
TopNewBestAskShowJobs

eggsnbacon1

488 karma · joined September 18, 2019

submissionscomments
eggsnbacon1··on How Rust Lets Us Monitor 30k API calls/min
Shenandoah and ZGC collectors have worse case pauses of ~10ms and average pauses of 0.5ms . The average pause is faster than malloc() sometimes in C, so you won't really be introducing more latency than C does.

The other option is to avoid allocating memory at all, which you could do in C/Rust but also in Java. The vast majority of shops given the choice for low/no allocation performance use Java anyways (HFT)

eggsnbacon1··on How Rust Lets Us Monitor 30k API calls/min
I would push rate limiting to the load balancer, HAProxy or Nginx, but that's just me. If you have a round-robin LB in front you just set each instance to limit at 1/nodes rate, that way you don't have to share any state.

If you're load balancing on IP hash you can set each instance to limit at full rate and not worry about it.

Shared state in rate limiting becomes a bottleneck very quickly. If you're trying to mitigate spam/DDOS you could easily get 100,000 requests a second. You're going to max out your shared state db way faster than 10gig lines

eggsnbacon1··on How Rust Lets Us Monitor 30k API calls/min
They didn't mention Java as a possible solution, even though its GC's are far better than anything else out there. I have nothing against Rust but if I was at a startup I would save my innovation points for where they're mandatory
eggsnbacon1··on [dead]
Have we hit peak coronavirus?
eggsnbacon1··on OpenAI API
> What kind of research is OpenAI doing that all the other big AI players (Google/DeepMind, FB, Microsoft) aren't also invested in? And even if others are doing the same, what part of OpenAI's research do you consider unethical?

I believe all of them are doing unethical research, especially facial recognition. Notice the public backpedaling this week from all the big tech companies on this too. By directing their cash through OpenAI they can avoid whatever fallout comes from unleashing things like GPT3 on the world.

The most straightforward use case for GPT3 is generating fake but believable text. AKA spam. That's what it was designed to do. If you think fake news is a problem now, wait till someone is generating a dozen fake but believable news articles per minute by seeding GPT3 with a few words and hitting a button.

Its a conspiracy theory with some circumstantial evidence. We will probably never know either way, because who would admit to it if it was true.

eggsnbacon1··on OpenAI API
They redefined the org from non-profit to "capped profit", whatever that means.

They're directly selling GPT 3 even though they originally said they wouldn't release it because of potential bad uses.

They paid MS a ton of money for hardware and got a huge equity investment from them.

And lets be honest here, the easiest and most straight-forward use of GPT3 is generating spam and low quality clickbait. Its the only use case that requires zero effort. The whole thing is built to generate fake but believable text. Its DeepFakes for text.

I'm not saying the whole thing is nefarious and evil, just suggesting that OpenAI may not be what it seems. There's a lot of odd things going on with it. They should have done what universities do, spin off the technology into a different for-profit company and sell it. Instead of redefining their entire org structure to make money.

eggsnbacon1··on OpenAI API
OpenAI started as a non-profit, went for-profit. Still owned by the big players.... Something isn't right.

Is OpenAI just a submarine so the tech giants can do unethical research without taking blame??? Its textbook misdirection, nonprofit and "Open" in the name, hero-esque mission statement. How do you make the mental leap from "we're non-profit and we won't release things too dangerous" to "JK we're for-profit and now that GPT is good enough to use its for sale!!". You don't. This was the plan the whole time.

GPT and facial recognition used for shady shit? Blame OpenAI. Not the consortium of tech giants that directly own it. It may just be a conspiracy theory but something smells very rotten to me. Like OpenAI is a simple front so big names can dodge culpability for their research.

eggsnbacon1··on Ruby vs. Crystal Performance
I reason the difference is mostly when metaprogramming can happen. In Java, redefining or adding code is very explicit, it can't just happen whenever. Same with C#. And there are lots of rules. A class can't modify itself, and there's limits to what changes you can make. And to make changes you must have control over the "classloader" that loaded that code.

JS on the other hand can do most of what ruby does, to my knowledge. Objects are key value pairs so you're free to mess with them in virtually any way you please. You can also mess with the inheritance by altering JS prototype chains.

I don't think metaprogramming itself has much to do with the speed of Ruby, with my admittedly limited knowledge of this stuff

eggsnbacon1··on Ruby vs. Crystal Performance
Metaprogramming doesn't need to have a performance impact. VM languages like Java, C#, and JS allow you do define and modify code at runtime

JS you can redefine anything, Java support is pretty good, C# better support is coming with generators

eggsnbacon1··on Google no longer providing original URL in AMP for image search results
and now they own the content. Links will be created to that google URL that last decades. And google can replace the data at that link with whatever they want, whenever they want.
eggsnbacon1··on Dolphins at popular spot miss tourists and keep leaving 'gifts' on shore
cruel sometimes maybe, but dolphins are also very well known for saving humans from drowning. I don't think its fair to project human characteristics onto animals, but at least some of what dolphins do is altruistic.

The drowning and shark savior stories are countless, and date back to before recorded history in some cultures. Maybe they aren't so bad?

There's also studies that can't find any reason they follow ship wakes besides "fun". I think they don't get as much credit as they may deserve

eggsnbacon1··on Python performance: it’s not just the interpreter
I really appreciate the in-depth replies on HN. Something Reddit lost ages ago. I gotta say your posts have introduced me to a lot of dark magic in the JVM that isn't really documented anywhere unless you count source code. Much appreciated!
eggsnbacon1··on The Intel Comet Lake Core i9-10900K, i7-10700K, i5-10500K CPU Review
Its pretty funny that after 20 years we're off the right side of this graph by 100X right? Current chips are somewhere between "internal combustion engine" and "surface of the sun"
eggsnbacon1··on Welcome to C# 9.0
there's free libraries, I used a bunch of them. I guess I'm just asking you to trust me that's its not nearly as good as in Java. C# is a better language, there's no question. But I jumped off the MS bandwagon years ago because there just wasn't the community support that Java has, for better (or probably) worse
eggsnbacon1··on Why Developers Hate PHP
this actually makes sense. Maybe I was wrong about PHP. But maybe not :)
eggsnbacon1··on Welcome to C# 9.0
Kotlin allows Google to hang out in Java 8 forever. If they want new features they can just add them at the Kotlin layer. Insulates them from OpenJDK and any changes Oracle wants to make. All great opportunities to fragment the Java ecosystem
eggsnbacon1··on Ask HN: “Git” for Microsoft Office?
We fixed this at my company by converting our documents to markdown and using git. Can can also use LaTeX. They're honestly better formats for things like user manuals anyways because its trivial to display them on web and devices.

We have our non-technical editors using Markdown and git just fine, but you may have a lot of initial resistance. We were able to force them to switch because we're mostly a tech company. They hated it at first even though they love it now.

Never found a good solution to powerpoint

eggsnbacon1··on Why Developers Hate PHP
its fun to trash talk PHP who cares if statements are accurate. PHP sucks because of the dollar signs everywhere. From a distance Wordpress code looks like Nigerian Prince emails.

And crazy coding conventions like mysql_real_escape_string. Really PHP?

eggsnbacon1··on Dark Patterns: Past, Present, and Future
the subscriber stuff is the worst. I unsubscribe from a marketing list and a month later the emails are back under a different name. They just create a new marketing category so you have to unsubscribe again
eggsnbacon1··on Welcome to C# 9.0
It really is wonderful. Used it at work years ago and still miss it dearly.

The only thing I don't miss is the lack of community. Many things you can get for free in Java/Python cost money in Microsoft land. Even common stuff like decent excel and PDF support. Its getting better but was still the case last time I looked.

What C# needs is Java interop. The VM and bytecode structures are similar enough for it to work. There was a guy maintaining a library for this until recently :(

Official CLR Java interop would kill Java. Within a few years every new project would be in C#.

The only other places I'm aware Java has a big advantage is GC and monitoring. C#'s GC is old school, has long pause times. Makes C# a no-go for many uses. Java also has better monitoring and profiling support.

eggsnbacon1··on The Intel Comet Lake Core i9-10900K, i7-10700K, i5-10500K CPU Review
excellent thanks! And no that number was from a random website :) . Looking at it, I think its solar radiance at earth surface. 1000 watts per meter is way too low donno what I was thinking
eggsnbacon1··on The Intel Comet Lake Core i9-10900K, i7-10700K, i5-10500K CPU Review
Maybe its not possible to regulate such a high current at gigahertz speeds off chip? The board traces and pins might have inductance high enough to negate smoothing capacitors at these speeds?
eggsnbacon1··on The Intel Comet Lake Core i9-10900K, i7-10700K, i5-10500K CPU Review
can someone calculate the watts/meter^2 on this chip, for science?

Eyeballing the chip, it looks like ~5cm^2? This would mean it puts out 500,000watt-meter^2 or about 50 times the heat of the surface of the sun. Do we have cameras fast enough to see this explode if the heatsink falls off?

eggsnbacon1··on The Intel Comet Lake Core i9-10900K, i7-10700K, i5-10500K CPU Review
This is true in a way, but at the same time they mostly achieve it through overclocking. The cost is massive power consumption. I'm curious how one of their brand new chips would perform next to one from 5-7 years ago overclocked to the same core speed.
eggsnbacon1··on Python performance: it’s not just the interpreter
Interesting indeed! I'll try to avoid a long rant, but I won't go near Graal because Oracle is stuffing much of the performance optimizations behind a paywall (wtf). Who writes a compiler and makes the code slower for free version? That's like something MS would do in 1995.

If Graal does replace OpenJDK eventually and Oracle keeps the performance optimizations behind an enterprise license, I have a feeling the Java community will fork the project away from Oracle. Just like they did for OpenOffice, MySQL, and Jenkins.

Another comment about Graal. Since performance is so important, its likely a third-party like Redhat will want to merge code into community edition that does the same thing as code already present in an "official version". Like RedHat already did for GC with Shenandoah. What is Oracle going to do? Say "no because it competes with our commercial branch"? I think whats going to happen is what happened with Shenandoah, where the Oracle builds are crippled by excluding features. What happened there? 99% of people switched to AdoptOpenJDK.

I'm not attacking you here, I realize you have no control over the matter. And thanks for Graal, its super impressive! I'm just salty that the community decided to replace C2 a decade ago yet Oracle has decided not to release the full replacement back to this community. Many companies differentiate themselves by having commercial versions of tools that perform better. Thats fine with me. I'm salty because Graal was how the community decided to replace C2. Its the reference implementation. Now the main benefit of that replacement, better performance, is locked behind a paywall. This is not what anyone intended and had they known this would happen they probably just would have rewritten C2 and left it in Hotspot

eggsnbacon1··on Python performance: it’s not just the interpreter
I looked around and indeed this still appears to be the case. Megamorphic call sites will not be inlined.

From reading mailing list messages, the main reason for this shortcoming appears to be C2 is such a mess nobody wants to touch it and they're writing a new compiler instead (Graal).

If optimizations start getting targeted towards Graal I'll be pissed. Oracle gimps the performance of the free version, the one thing you should never ever do with a programming langauge

eggsnbacon1··on Python performance: it’s not just the interpreter
I ran mine in JMH which does a bunch of warmup iterations, hopefully enough to trigger full JIT
eggsnbacon1··on Windows Package Manager Preview
I just want to be given the option. 90% of the creepy stuff MS and Google do is for "performance" and "security"
eggsnbacon1··on The Intel Comet Lake Core i9-10900K, i7-10700K, i5-10500K CPU Review
Intel iterates more on its naming scheme than CPU's these days. At least it fits well with the "its over 9000" meme, which would make a great commercial for these chips. It is impressive they managed to make a chip that uses 250 watts, I never managed to get my overclocks that high.

And I guess all those warnings they gave us about "overvolting" for decades were bullshit ¯\_(ツ)_/¯ . Everything comes overclocked from the factory now. They're using the same tech as the Haswell days. Back then they told us core voltages over 1.2 were unsafe and now they run 1.3 from the factory. Lol

Sorry I just love throwing shade on Intel, they've been a predatory monopoly for ages. Purposely turning off ECC on everything except ungodly expensive server chips. Changing sockets on a schedule to force you to buy more shit, sometimes by moving a single pin. Forcing vendors to sign agreements not to use AMD. Allying with MS to corner the market with Wintel. "Management Engine" can't be shut off. Attempted to segment 64 bit market with Itanium, leaving consumers on 32 bit seemingly forever. Encouraging developers to use their compiler that purposely cripples non-intel CPUs. Showing demos at shows that are secretly water cooled and overclocked.

Intel is a shitty company. I'm glad their foray into mobile devices flopped. I hope they lose tons of market share

eggsnbacon1··on New York Times phasing out all 3rd-party advertising data
Possibly, but my fear is that ad networks will start installing frameworks on the content servers and use fingerprints instead of cookies for unique user id
← PreviousPage 3 of 5Next →