HNHacker News
TopNewBestAskShowJobs

tutfbhuf

1,882 karma · joined December 8, 2017

submissionscomments
tutfbhuf··on Show HN: Beeper – All Your Chats in One App
I already have a VPS for other reasons, so I'm glad if I could get a self-hosted solution.
tutfbhuf··on Toolz: A functional standard library for Python
But you can define functions inside of functions (recursively).

  def function1():
      print ("hello outer")
      def function2():
          print ("hello inner")
      function2()

  function1()
Output:

  hello outer
  hello inner
tutfbhuf··on Show HN: 100 LOC Ruby forward proxy using only standard libraries
I think this is just a tech demonstration, but I wonder how much performance this proxy has in a benchmark against some similar small (in terms of LOC) C/Rust proxy.

BTW, Github counts 149 SLOC just for this file: https://github.com/jamesmoriarty/forward-proxy/blob/769b6424...

tutfbhuf··on The State of IPv6 support on the Tor network
If you want to support Tor you could rent a cheap 3$/month VPS and start a non-exit Tor relay there. Many providers will allow you to host a non-exit relay. I do so for years without any issues. Just check that you stay within your traffic limits.
tutfbhuf··on A distributed Posix file system built on top of Redis and S3
A low latency metadata server is good, but you still have the latency to the S3 server, e.g. Amazon S3 (from your README.md).

Now you could say, that I could host my own S3 e.g. MinIO in the same DC, but then I could also simply deploy Ceph, which is battle tested for years up to the petabyte range and with iSCSI, S3 and FS interfaces.

So I think this project might give the wrong impression that you can simply combine a Redis with Amazon S3 and then have a good FS solution available, which is unfortunately not the case.

tutfbhuf··on A distributed Posix file system built on top of Redis and S3
I think the major problem is latency. Try sshfs (fs over ssh) and see what I mean. Don't get me wrong, I use and like sshfs for a quick data transfer, but it's just not good enough to run your application with.

For a stable POSIX filesystem in production latency is key. Often times in a datacenter 10GE is recommended for network storage solutions, not because of bandwidth (which is also important), but for the 10x reduced latency of a 10GE NIC. Most applications simply expect response times of microseconds or a few milliseconds at most from a POSIX Filesystem, they simply cannot run (without modifying the codebase) on something much slower.

But if you had to rewrite your application anyways, then you might want to use plain S3 without the FS, that is easier to operate in the long run.

tutfbhuf··on Intel’s 8-Core Mobile Tiger Lake-H, at 45 W, to Ship in Q1
I find that 25W CPUs are quite a good middle ground. They usually offer better perf than 15W and run much cooler than 45W.
tutfbhuf··on Intel’s 8-Core Mobile Tiger Lake-H, at 45 W, to Ship in Q1
> does intel have a node shrink coming soon, and can they execute?

Yes since years, no.

tutfbhuf··on A bit on scaling chess.com's database
Vitess is just one example, there are others. And it depends, some teams might be able to do some work to get along with MySQL, like chess.com. As in most cases, there is no silver bullet here.
tutfbhuf··on A bit on scaling chess.com's database
There are "new generation" databases, some of them MySQL 5.6 compatible (e.g. Vitess) with the ability to massively scale in terms of read/write QPS (queries per second).

In database related podcasts you will hear that QPS is considered to be a solved problem nowadays.

tutfbhuf··on XTerm: It's Better Than You Thought
I like composability, to stack software together, like chaining coreutils in bash. Vim inside of Tmux inside of Xterm inside of Xorg on Linux. Every software adds its functionality to the stack, but no more.
tutfbhuf··on XTerm: It's Better Than You Thought
> Things like tabs and a proper scrollbar are a minimum for me.

I use xterm in tmux, no need for native scrollbar or tabs.

tutfbhuf··on Is opening up your source code worth it? Terry Cavanagh thinks it was for VVVVVV
Reminds me of verbosity level -vvvvvv
tutfbhuf··on Parler Databases Disclosed
> they defaulted to not do any check at all?

That would be a very unsafe default.

tutfbhuf··on Crash: Sriwijaya B735 at Jakarta, lost height and impacted Java Sea
I'm not sure why people try to find similarities for completely unrelated event.
tutfbhuf··on Crash: Sriwijaya B735 at Jakarta, lost height and impacted Java Sea
Completely unrelated but it somehow reminds me of flight MH370.
tutfbhuf··on Haskell is a Bad Programming Language (2020)
I think it would be best to create a spin off of Haskell. A small subset with only the good parts of Haskell, few hand selected extensions, new prelude, with focus on performance, very easy tooling/build chain and use in production for businesses: "Production Haskell Lite".
tutfbhuf··on A half-hour to learn Rust
Well, you would need a way to "tell" the compiler more about your intentions and maybe even explicitly declare rules for what you consider a memory leak in certain scenarios.

To provide an example for a different case: programs written in Gallina have the weak normalization property, implying that they always terminate.

tutfbhuf··on Laptop stolen from Pelosi's office during storming of U.S. Capitol, says aide
Well I guess gov knows.
tutfbhuf··on 'Big Short' investor predicts Tesla stock will collapse like the housing bubble
> at the current rate Tesla will soon be worth more than every...

company on earth put together. Just a few more x10 away.

tutfbhuf··on Huawei Tops Intel as Top Linux Kernel Contributor for 5.10
I think the best metric is to sort by number of comments on a particular changeset. More comments, more wide spread discussion, more people involved => more impact.

WireGuard for example is only a relatively small changeset, but has an huge impact for many uses, you can find many comments, posts, write ups, about it all over the internet. Many knew that this feature was going to be huge, well before merge into linux.

On the other hand, if almost no one is discussing a particular change (e.g. the removal of 20k lines of driver code), then the impact will either be very low and unimportant or it will unexpectedly become important, but there was no way you could have known it beforehand.

tutfbhuf··on Rails, React, Microservices and Micro-FrontEnds
How do you handle important libraries (common functionality) for your teams in the backend?

Sure, it's possible to remove all dependencies from a teams project by copy and pasting the code or by reinventing the wheel, but I'm not sure if these options are better than carefully chosen dependencies (including some maintained by other teams).

tutfbhuf··on Reed-Solomon error recovery in RAID-6
> there are systems which are both more durable and more efficient than RAID 6

RAID 10?

tutfbhuf··on Rails, React, Microservices and Micro-FrontEnds
> Or developers will lose sight of the bigger architecture and end up specialising in only a few services.

This is unavoidable for many companies, since the code bases are far to large for any single person to grasp them all.

> But more importantly, I doubt micro-services will solve their problem of their monolith not being modular. That seems like an architectural problem that can also be solved in a monolith.

Try to run your monolith in kubernetes, it's possible but not much fun. Since single machines can not longer scale at large, we have to run distributed software, small pieces across hundreds or thousands of machines in order to scale efficiently.

> But in general, I have never seen a company that switched to micro-services, and didn’t end up regretting it a few years later

Netflix?

tutfbhuf··on Rails, React, Microservices and Micro-FrontEnds
Wouldn't it be possible to just have one styling package maintained by one team for all other teams?
tutfbhuf··on The Biggest Shell Programs in the World
Startup times might be important for you. For example it can take tens to hundred milliseconds to start a python 3 interpreter. This effect becomes even more noticeable when you have to do it multiple times, by chaining multiple scripts together.

You can avoid the slow startup by using languages that are able to generate small compiled binary, but then you wouldn't call it a script, because you have to recompile for every change.

Then there are other approaches like xonsh, where you (roughly speaking) replace bash or zsh with a python interpreter. Now you don't have to start the interpreter over and over again, because your shell is python. I think it's an interesting approach, but you have to like python and you will hardly find xonsh on any remote machine, so you are probably still confronted with bash and the like.

tutfbhuf··on A distributed key value store in under 1000 lines
If Go's HTTP server would be a standalone binary and you have to take care of it separately from the main code base, then yes.
tutfbhuf··on Rust is now overall faster than C in benchmarks
Okay according to their results: https://pybenchmarks.org/u64q/chartbox.php?s=eNptUtttAzEMW0l... PyPy seems to be twice as fast as CPython in these benchmarks. While this is indeed a noticeable achievement, it is still much slower than Node.
tutfbhuf··on Rust is now overall faster than C in benchmarks
Honestly, I don't know. I think I read it somewhere, as explanation for why python is so slow. It made sense to me, that it must be language features. I hope there's someone on HN who can explain it.
tutfbhuf··on Rust is now overall faster than C in benchmarks
Are there any CPython vs PyPy benchmarks?
← PreviousPage 9 of 21Next →