HNHacker News
TopNewBestAskShowJobs

dallbee

149 karma · joined April 25, 2014

pgp public key: B2CA59B31953BDBF3E4A25030D2777561124F519
submissionscomments
dallbee··on Memcached 1.5.18 can now recover its cache between restarts
Sorry fsync_always is a redis setting, not memcached. The fsync is to a real disk.

The parent poster's comment about redis being crash safe to 1s is just the default.

dallbee··on Memcached 1.5.18 can now recover its cache between restarts
With fsync_always it's crash safe for all but the most pathological scenarios.
dallbee··on What Happens When Americans Don’t Pay a Hospital Bill
My experience has been that the hospital sets up the monthly payment amount (sometimes with varying plan options). You can't partially pay, and the payment amount is a simple ($total / plan term). Paying $1 isn't really an option.

The last medical bill my family had was something like $3500 and the longest term the hospital offered was 6 months, at $580/mo.

I'm sure they're not all the same, but I could certainly see an unexpected $580/mo being able to cripple a family living paycheck to paycheck.

dallbee··on Show HN: Bashfs – Run commands as your filesystem
Sure, fuse actually implements the lesser known CUSE protocol as well. Stands for character device in user space, and does exactly what you describe.
dallbee··on Show HN: ZeroHTTPd: A web server to teach Linux performance, with benchmarks
On Openbsd you have sosplice, which can be used much like sendfile.
dallbee··on Waterfox Browser
This has been around for a while. I used it as my primary driver several years ago, back when its main feature was that it had 64-bit support. After Firefox implemented a 64-bit build, I sort of just assumed waterfox would die off. Neat to see they've kept around and changed focus.
dallbee··on Lessons learned porting 50k loc from Java to Go
Like with all languages the implementer matters. There's a remarkable amount of variance that I've encountered in the tersiness of both Go and Java code.

For example, Go's err != nil pattern is often cited as being ugly, but good go code will often remove errors by design.

There's a good post by Dave Cheney about this; https://dave.cheney.net/2019/01/27/eliminate-error-handling-....

I think this is equally true of Java. Most Java code I've seen disgusts me, but I've also seen some beautifully written pieces.

dallbee··on NFL Releases Finite Element Helmet Models
There's research being done with piezo-electrics to achieve this.

Pretty neat stuff.

dallbee··on Ask HN: Do you feel you are mostly writing glue code?
Every team I've been on has had it's majority of engineers doing exactly that. Honestly, many are happy in that role.

Usually theres a handful of people that tend wiggle their way into more backend, architectural things (libraries, in-house tools, etc.). If you're bored, try to be that person.

dallbee··on Arduino Death Clock
A simple improvement would be to use the average life expectancy given a certain age. This can be calculated with the age specific death rates for a population: https://en.m.wikipedia.org/wiki/Life_table
dallbee··on Ask HN: Password manager recommendation?
I'm a huge fan of Pass. (https://www.passwordstore.org/). It's command line based but there are adaptations for various platforms. It works best in a UNIX-like environment, though.
dallbee··on Ask HN: Do you use FreeBSD as web server? Why or why not?
Absolutely. It's the only OS where I can be certain that I know where everything is and how everything works. It has few deviations from the Unix architecture and the ports repository enforces adherence to the filesystem layout.

I don't buy into the "increased performance" though. Every well done benchmark I've seen is at least several yaers out of date, and my personal benchmarks usually put linux ahead on any sort of operations that include networking. Not to say FreeBSD doesn't perform well, it does.

Simplicity is key.

dallbee··on Why I don't spend time with Modern C++ anymore
I wonder if the author has similar views about C, which doesn't have many of the problems that he's talking about.

Furthermore, many of his arguments seem to be statements about all high level languages.

dallbee··on 45% of Americans Pay No Federal Income Tax
Another thing that hasn't been mentioned is age & school status. From 18-23 I worked part time and never had to pay taxes. I was part of that group who zeroed out, and now I contribute $20,000 per year (proudly, I might add). Am I a moocher?
dallbee··on Show HN: Ultra Tiny Compiler in less than 90 lines of code
Yeah. My first reaction was "Oh god", but after reading through the source, it's actually a really great usage of literate coffeescript.
dallbee··on FreeBSD 10.3
Of particular note: This release brings 64 bit support to the Linux compatibility layer.

I suppose when windows caught up Bash on Windows, FreeBSD needed to do something to keep one step ahead =].

dallbee··on Phalcon – PHP framework delivered as a C extension
I've found it to be just as easy to get going with as Laravel. The documentation is good.
dallbee··on Google Shutting Down Wallet Card
Sure, fees are under 5%, but what about that one month that you didn't pay off your bill in full? Enjoy that ~30% interest rate on your account balance.
dallbee··on Sortix 1.0 Operating System Released
I appreciate your humble an honest approach - it's refreshing. I'll be sure and try this out in a VM!
dallbee··on String types in Rust
Nice writeup.

I'd like to see some examples illustrating appropriate usage of Clone-on-Write with Rust strings - that's something I personally have struggled with while learning rust.

dallbee··on C – Preliminary C2x Charter
I'd just like something better than _Generic and (void *) as our only ways to do generics. That's my one feature. Too bad that's not likely to happen, ever.
dallbee··on Curl vs. Wget
We are forgetting our long lost cousin, fetch. http://www.unix.com/man-page/FreeBSD/1/FETCH/
dallbee··on GitKraken: git GUI Client for Windows Mac and Linux
The UI is designed well enough, I just wish the application wasn't basically a web-view.
dallbee··on Drupal Benchmarks
PHP's speed is here is a bit of a red herring. I dislike linking to benchmarks, but https://www.techempower.com/benchmarks/#section=data-r12&hw=.... In I/O bound situations, PHP performs within an order of magnitude of C. You don't have to be Facebook, you literally just need to enable APC or XCache.

Let's focus on how horribly awful Drupal is. Or, to the point of the topic, let's congratulate the author for discovering that yes, you can in fact replace a single server with any number of cheaper computing devices (you just have to disregard all of the other reasons why we use servers).

dallbee··on A bit of background for the unified C++ call proposal
It's worked well for a number of languages. Nim was mentioned, and D has done this for quite some time as well. http://dlang.org/spec/function.html#pseudo-member
dallbee··on Facts No One Really Checks (2012)
Nope, my lame state school made us check these as well.
dallbee··on Using D and std.ndslice as a Numpy Replacement
I should have provided a key. Where I listed a +, I basically meant that there was either work underway or it was something that could be done yourself without hindering a project too much. I did not intend to imply that symbolic expression was a solved problem, or anything of that sort.

As for QR decomposition, I am actually rather familiar with it, my brain simply decided to fart on the symbols QR without being followed by decomposition.

For Cholesky Decomposition, I'm sticking with "trivial to implement", and I'll even throw in "trivial to implement well": https://github.com/numpy/numpy/blob/v1.10.1/numpy/linalg/lin...

You asked if D had code for a list of math capabilities that you use on a regular basis. My answer says "In many cases, no, but there's work being done toward that goal." No one is saying "we have a feature-complete math library!". There's much more needed than what you listed, and even the things you listed have many items with zero work done toward them. I am not attempting to say "D can do all these things!", and I don't think the author of the article was either.

dallbee··on Using D and std.ndslice as a Numpy Replacement
A lot of that is up and coming.

https://github.com/DlangScience

[x] Plotting: http://code.dlang.org/packages/plot2kill

[+] Optimization: Nothing directly for the purpose, but the intermediate steps are done. And a little bit of work from http://code.dlang.org/packages/atmosphere

[x] Probability Distributions: http://dlangscience.github.io/dstats/api/dstats/random.html and http://dlang.org/phobos/std_mathspecial.html

[-] Machine Learning: Not that I'm aware of, but I vaguely recall some work being done on this

[-] Financial calculations: I couldn't find anything, but I'd be surprised if this wasn't implemented already.

[x] Masked Arrays: Accomplished via language features in combination with ndslice

[x] Structured Arrays: Absolutely. Standard library support as well as a number of 3rd-party libs can do this.

[-] SVD

[?] QR: Afraid I'm not sure what you're referring to.

[+] Cholesky Decomposition: Trivial to implement

[x] Eigenvalues/Eigenvectors: Yes. SciD provides Eigens as well as two other third party packages. https://dlangscience.github.io/scid/api/scid/linalg/eigenval...

[x] Least Squares (linear): Trivial to implement, but also implemented by a few of the 2-d & 3-d graphics libraries.

[x] Least Squares (nonlinear): Nothing, but we both know that this is easily done by applying a function to your independent variable to linearize it in many cases.

[-] Levenberg Marquardt

[x] Matrix Inverse: Provided by SciD

[?] pseudoinverses: I'm afraid my math background doesn't cover that, and I couldn't find anything with a similar naming in the package repository

[x] Integration: SciD provides integration

[-] Range Kutta

[-] Interpolation: Sort of. A few of the graphics libraries have this, but it's asking a bit much to include a graphics library to do interpolation.

[-] Bsplines

[-] fft convoles

[?] Multidimensional images

[?] KDTrees: Probably in one of the 3d graphics libs

[+] Symbolic equation solvers: Some of this was done for Tango back in the day, and it has been ported, but the project looks fairly dead. https://github.com/opticron/libdmathexpr/blob/master/source/...

[x] Merge/join of data sets: Can be done efficiently and easily with core language features

Additionally, anything written for C can be trivially wrapped and used in D. An example is http://scimath.com/, which completes much of what you mentioned.

Are they in standard libraries? SciD needs more time Fully Documented? D tends to encourage good API documentation, and the algorithms are largely ports of "69 year old, fully debugged code".

I think you're point about "reliably email to anyone across the world" is an overstatement. Python is popular, not ubiquitous. D is obviously much less popular. Can anyone run the code? Yes. For them to modify it, they need to learn the language.

You might not care about how long computations take, but I know back at my old university there were dozens of researchers complaining about the resources that had to be spent on supercomputer time, and the annoying amount of time that many calculations involving things like molecular configurations can take. Speeding this up saves money and makes the research less painful.

"No one is ever going to use D for serious number crunching without the infrastructure in place" - Yeah, that's totally true. The infrastructure is a WIP. There's nothing wrong with that.

Your post comes across to me as being rather cynical - but why not be supportive of the good work that's being done?

dallbee··on Learn X in Y minutes Where X=Nim
Just the community.
dallbee··on Learn X in Y minutes Where X=Nim
And HN was doing so well, I haven't seen a nimrod post on here in days.
← PreviousPage 2 of 3Next →