HNHacker News
TopNewBestAskShowJobs

plq

1,366 karma · joined April 2, 2010

github.com/plq ext-hn@burakarslan.com
submissionscomments
plq··on Inceptionism: Going Deeper into Neural Networks
OT, but this is originally a "3D" image.

It can be found in the cover art of "10000 Days", an album from American metal band Tool. The original box comes with two magnifying lenses like this:

http://s21.photobucket.com/user/Stonergrunge/media/Mis%20cos...

This (and others in the cover) look stunning through these lenses.

plq··on Aneurysm
God, so sorry to hear that. There's no "Fail :(" here, please don't think like that. You're just trying to cope with this stuff. It's the most humane thing to do, and you know what, you need to stay strong for your family and for that your mind needs such breaks from time to time.
plq··on An update on IPv6
I think he's talking from an end-user point of view.
plq··on Three months of Rust
You must not forget that thanks to the preprocessor, what looks like 2000 lines may in fact be around 200k lines

E.g. I have a very innocent 2000-line MainWindow.cpp that weighs 244419 lines when measured with gcc -E -o - | wc -l

plq··on ‘Deep learning’ technique enables robot mastery of skills via trial and error
Here's the same guy (PR2) in action 7 years ago folding towels at 50x speed: https://www.youtube.com/watch?v=gy5g33S0Gzo

And I doubt it was trained. It seems to be following a predefined procedure instead of learning by itself.

It seems to have come a pretty long way if you ask me!

plq··on Ask HN: Should I unplug my laptop charger at 100%?
That's insightful, thanks.

But how do I know the battery reports honest numbers? If all these years spent dealing with hard disks tought me anything, it's that what's being reported by the device could be totally different from the reality :)

Perhaps some brands charge a premium for a "long lasting" battery whose only actual difference from a regular one is a firmware hack that keeps it at %80 charge? Can I actually know this?

plq··on Nagios vs Icinga: the story of one of the most heated forks in free software
I've been wondering: When you either have nagios or icinga, do you need any other monitoring solution? I remember the FIFA live stream guys from a previous article built their custom monitoring solution (named Sauron). Should they have simply used one of these instead of reinventing the wheel?
plq··on What will C++17 be?
It's actually C++0B! :)
plq··on What will C++17 be?
From where I'm standing, C++ package management is already quite nicely solved by what we call package managers in the linux world. You know, portage, aptitude, etc.
plq··on Cycling Lessons Learned from Amsterdam
My opinion based purely on anectodal evidence says the essential reason why bikes are highly preferred by the people of Amsterdam is that it is mostly a flat city. Compare this to Istanbul, where even seemingly trivial journeys have 100m climbs in it.

Example for a popular home to work commute: http://cycleroute.org/?slat=41.061029&slng=29.00681199999996...

plq··on GitHub hit by DDoS attack
You mean TFA.
plq··on Observium: An auto-discovering network monitoring platform
Also check ntop out -- it has similar traffic reports, but no such fancy multibox support last time I looked.

That's more a job for SNMP clients anyway. Actually, just look at Nagios/Icinga :) It's a very mature and well-rooted infrastructure monitoring solution.

plq··on Would Rust have prevented Heartbleed? Another look
They're practically same, but rust pulled it off without a gc.
plq··on Five new undisclosed Xen vulnerabilities
Yet linode is still silent...
plq··on Dell XPS 13 Review
I got a custom built 13.3" Sony Vaio S. It's got 12GB ram, 1TB disk, Intel i7 at 2.9Ghz, 1600x900 display, Blu-Ray Reader/DVD-RW Combo, 3G modem, gbit ethernet, both VGA and HDMI output, 3 USB ports (2 of them 3.0) SD Card and MemoryCard and cost 987 GBP plus tax which I got back on my way out. Oh and it's got very good Linux compatibity out of the box. Resumes from ram without a hitch, I only reboot when I need to get something done with the kernel. I'm writing this while listening music via my bluetooth headset. Battery sustains around 2 hours of work, but it used to be better. It was leaps and bounds ahead of what Apple had to offer with its Macbook PRO line at the time at 2/3 of its weight, and I fear still is.

I'm looking at Dell's machine and yes it's got a higher resolution display (but is it better at that display size? I hope!), and presumably an updated processor, but that's it. No nic, no disk spinner, less ports, no VGA, etc. Call me old-fashioned but I can't consider a laptop without a couple easy ways to get data on/off (e.g. ethernet ports, disk spinners) as a development workstation.

Top that and I'll pay you.

And shame on you, Sony, for not being able to properly sell today's market leader that you came up with two years ago. Shame on you.

plq··on Silicon C++14 Web Framework Documentation
Fortunately, not everyone who programs for the web needs PayPal integration :) If it's easy enough for people to switch, it will get there.
plq··on Asynchronous Python and Databases
> It is certainly not true that a Linux box with 2000 threads blocked on i/o will be having any sort of bad time.

You and I must have very different perceptions about the way a server is "having a bad time" :)

I was assuming they were at various stages of processing an incoming request, which means they were blocked on either legitimate disk i/o or swapping. It's very difficult to log in even locally in that case, because the login process can't read /etc/passwd in time.

> Also I'm not sure why you think that the kernel thread scheduler is all that good, or why it shouldn't be considered "outside our control.

I was just trying to say that it's dangerous to give non-trusted peers big influence on the way the scheduler behaves.

plq··on Asynchronous Python and Databases
Async has never been about speed. Cooperative multitasking doesn't magically gzip your instruction pipeline or something (actually CM is suboptimal). It's just the only tool for those of us who want to avoid giving the keys to arguably the most important subsystem in the kernel to agents outside our control: The scheduler.

Ever tried to ssh into a one-thread-per-connection setup under heavy load? Assuming you managed to log in, it'll be very very difficult to get htop to execute when it's competing with 2k other processes for cpu time.

So, spawning a thread for every incoming connection request is a bad idea. But what about spawning a thread for every outgoing database connection?

The memory overhead of a thread compared to a tcp socket may be significant, but it's nothing compared to a database connection and all the other resources tied up serve that one database query. And best of all, you can refuse to setup a database connection without upsetting your user and e.g. serve from cache instead, but you can't refuse an incoming connection request.

According to the Postgres guys [1]: "A formula which has held up pretty well across a lot of benchmarks for years is that for optimal throughput the number of active connections should be somewhere near ((core_count * 2) + effective_spindle_count)"

Assuming you got two tablespaces on two raid 1 arrays on a 16 core machine, that's 16 * 2 + 2 = 34 threads plus the event loop thread, maximum.

According to those numbers, there doesn't seem to be much stopping you from running your data access logic within a thread.

[1]: https://wiki.postgresql.org/wiki/Number_Of_Database_Connecti...

plq··on Asynchronous Python and Databases
> there are ways of speeding up your app that don't involve touching the Python side (caching using Redis, denormalizing, etc), but they are a lot harder to implement than asynchronous I/O. Why give up on some free performance for many types of applications?

1) I can't say I find migrating blocking code to non-blocking code trivial. The bad thing about it is that you never know what you left behind. Blocking code doesn't tell you when it's blocking your event loop.

2) Async helps apps use less memory by doing away with thread overhead in connections, but is otherwise suboptimal (hinders latency) under higher cpu load scenarios. It never was a way of getting additional "free performance" for your app.

plq··on The C++ bashing season is back (2009)
Nim's got a long way to go with its thread-local non-shareable heap if it's aiming to replace C++. (I don't think it actually does.)
plq··on Django Rest Framework general model serializer
You can use Spyne[1]'s HttpRpc and JsonDocument protocols via Flask-Spyne[2].

You can actually use Spyne with Django as well[3] (and Spyne has a "general model serializer" that can be used with a lot less boilerplate than what's shown here).

Spyne supports a lot of protocols as well as persisting to a relational database via SQLAlchemy.

Disclaimer: I'm the author of spyne.

[1]: http://spyne.io

[2]: https://pypi.python.org/pypi/Flask-Spyne

[3]: https://github.com/arskom/spyne/tree/master/examples/django/...

plq··on HackerSurfing: Free Housing and Food for Engineers Visiting SF
tell me about it.

http://hackersurfing.com/assets/dinner5_s.jpg

if you're trying to make an impression, that's the impression you're going to make. sheesh.

plq··on GPGPU Accelerates PostgreSQL
Which makes me wonder about the influence on the performance per watt ratio of such GPU-based solutions. To my knowledge, beefy cards are pretty power-hungry.
plq··on Zfs support for docker (beta)
So, can we deploy docker containers using BSD's jails?
plq··on Can Qt's moc be replaced by C++ reflection?
They got move semantics, smart pointers, concurrency primitives, type deduction, etc. out the door first. While I agree that reflection is important, it's not as important as those. I don't see any problem with comittee's prioritization.
plq··on Can Qt's moc be replaced by C++ reflection?
Qt's meta object compiler (moc, a code generator that lets C++ kind of emulate Objective-C's message passing) is mighty handy for transparently queuing (instead of directly calling) signals that cross thread boundaries. I don't see anything in this post that mentions it.

See the relevant bit from Qt's documentation for more information: http://qt-project.org/doc/qt-5/why-moc.html

plq··on How Hy backported “yield from” to Python 2
inspect module offers isgenerator and isgeneratorfunction. the author should have used that.

https://docs.python.org/2/library/inspect.html#inspect.isgen...

plq··on Jolla Tablet
I have a Jolla phone and I love it. I guess I'm among the luckier ones as my phone doesn't have any of the wiggly sim/battery problems. It's been very stable for me for the past 8 or so months I had it.

I love the battery life. Perhaps thanks to using Qt/C++ instead of a higher level language/framework, or perhaps thanks to me being social-medially-challenged, the standard 2200 mah battery takes me for a good chunk of 48 hours.

Yes, there aren't much apps for it, (there was a time when you could practically download the entire Jolla store to your phone) but almost all of the apps are open source. If you're craving for the latest episode of Brain Crush Saga, you're not in the target audience anyway.

There are also a couple of factors which make it a unique offering:

-It's not from Google, it's not from Apple, so I'm a bit more comfortable privacy-wise.

-The concept of "The Other Half". It's sort of a "hardware app" that you can use as the back cover of your phone. For example, there's a kickstarter for a The Other Half Keyboard running right now: https://www.kickstarter.com/projects/2028347278/tohkbd-the-o....

-No front-facing buttons! Huge success design-wise. Not gorgeous like the N9 (reportedly due to some patent issues), but still very eye-pleasing.

All in all, very cute device, but definitely not (yet) for everyone.

As for the tablet, I expect to be a lot more productive with it compared to the toys on the market now, especially thanks to it being an Intel-based device with a proper Linux distribution. And at ~200$ for this kind of device, to me it's a bargain.

The Indie GoGo page is buried far down the page, so here it is for your convenience: https://www.indiegogo.com/projects/jolla-tablet-world-s-firs...

Keep up the amazing work, Jolla team, you are making a difference.

Disclaimer: No affiliation, just a happy customer.

plq··on Microsoft takes .NET open source and cross-platform
I see so much emotion in this thread. Yes, I was there to witness what M$FT (ha! take that Mr. Gates!) did around the dawn of this millenium as well, but we had all felt that the times they were a-changin' when Slashdot retired the Bill-the-evil-Borg image already. It's just Microsoft refused to adapt until now, which e.g. made them miss The Mobile in its entirety.

So, Microsoft is finally adapting. But what are they actually doing? Why did Microsoft finally decided to make .Net cross-platform? What's in it for them?

Look at what's in this shiny new package: They've open-sourced just the core runtime. They are not open-sourcing Visual Studio. Or WPF. Or SQL Server. Or Active Directory. Or Office.

There's one thing the Linux ecosystem is pretty good at: Scaling, both up and down. There are technical reasons for that, but none could possibly be an issue for a software powerhouse the size of Microsoft. There are also commercial reasons for that, most important being: You just can't beat free.

So that's what Microsoft is finally moving against -- Dear startup founder who is afraid that licensing costs will eat him/her alive while his/her "Growth Hacking" strategy is working, dear embedded programmer whose tiny IoT device that just can't cope with the whole Windows mumbo-jumbo, welcome to the Microsoft platform -- You can now safely run your C# on these free platforms as well.

So, Microsoft is finally back in the game. They even seem to be playing nice. But the question in everyone's mind is: For how long?

plq··on DuckDuckGo understands unicode
Google doesnt: https://encrypted.google.com/search?hl=en&q=%F0%9F%8D%85
← PreviousPage 9 of 13Next →