News for hackers. Stuff that matters.

_pgmf

Re:Ask HN: How to do cross platform GUI? on Sunday August 23, 2020 @10:04AM (#24252021)
I love using tcl/tk and Python's tkinter module.

The complaint that it looks old-fashioned is addressed partly by using ttk (themed tk) but also just about every aspect of the widgets can be styled using a simple xresources-style config.

It's fast and lightweight, free forever, stable as hell, and there's lots of resources online.

Re:Redis 6.0 GA on Thursday April 30, 2020 @11:05AM (#23031617)
Contrarian view here.

I really liked Redis for a long time. Simple, fast data-structures in-memory. That's it. Along the way there have been some nice enhancements like Lua, which solves a lot of the atomicity issues. But somewhere after 4.0 I feel they have lost their way. First they saw all the attention Kafka/event-stuff was receiving, so they baked-in this monstrous, complicated, stateful streams feature. Now we have SSL (do people really expose Redis on the internet??), ACLs, cluster stuff, and most relevant to me a new wire protocol.

To my thinking, Redis fit very well in the "lightweight linux thing" category. It seems they aspire to be enterprise software, and this may be a good move for Redis-the-Business, but it's not good for users like me who just want simple in-memory data-structures and as little state as possible. Forcing a new protocol that adds very little value (in my opinion) also seems like a great way to alienate your users.

Re:Disabling Snaps in Ubuntu 20.04 on Saturday April 25, 2020 @09:14AM (#22977847)
>Projecting this hard.

The shortcomings of snap are well documented. I assumed anyone reading the comments would have been aware of them. But apparently some people will jump on any chance to virtue-signal.

Re:Iced, a cross-platform GUI library for Rust on Friday April 03, 2020 @08:39AM (#22768558)
For me, it's python and tkinter.
Re:RQ – Simple Job Queues for Python on Friday January 03, 2020 @10:15AM (#21946536)
As always I'm happy to see one of my projects getting repped. Huey was something I started out of frustration with celery. It's more of a celery replacement than an rq replacement, though it covers both. If you haven't heard of it -- it does tasks, cron (periodic tasks), delayed tasks, result-storage, etc., and supports multiple worker models (process/thread/greenlet).

Docs: https://huey.readthedocs.io/en/latest/

Re:Python Type Hints on Saturday December 28, 2019 @06:21PM (#21902532)
I don't understand why anyone would want type hints. It makes the code so ugly and complex. Pythons appeal for me was always that it is "runnable pseudocode" with a strong object system and great libraries.

To me it feels like python is running as far away from simplicity as fast as possible.

Re:Open Letter to the Linux Foundation on Saturday November 09, 2019 @08:23AM (#21491367)
>what can you do about it?

Never apologize.

Re:Open Letter to the Linux Foundation on Saturday November 09, 2019 @08:17AM (#21491337)
Cancel culture. Note how they don't persecute prominent people/leaders. They go after those who are more vulnerable.

What a time to be alive!

Sarah Mei alternates between aggressive, mocking, and combative. She has no sense of humor. Her worldview is unbelievably bleak and threatening. And she views herself as special -- someone "woke". It's terrible to behold.

The truth is that people make mistakes. People are entitled to their own opinions, however much you may disagree with them. The world exists outside one's self, and any one person just a small, small part of it. The world is not to blame if I feel hurt or threatened, and life is not fair. But within this world we have complete freedom. Do not try to take that away.

Solving problems directly related to the field in which I'm claiming expertise is in no way a damaging to my dignity.
I worked at a place with a demanding interview process for about 3 years and the people I worked with were excellent. Nobody is making you do anything you don't want to do. So drop the attitude and the childish entitlement.
I don't understand why you feel it's necessary to share your personal justifications (rationalizations), other than you're trying to normalize your own mediocrity. Which, by definition, already is normal.
> And thus, this is another example of my aversion to difficult work

Nice. A parallel: "I'd take a pill just to take my procrastination away! Hell I'd take 2."

I had some real procrastination issues at work. I mean, I was really beating myself up, praying about it every night and sometimes during the day. Eventually I just had to start in on the tasks I had been putting off.

Perfectionism is another facet of this thing: I need to handle x, y and z but that's going to be really tough, especially "z"... Fuck I'll start tomorrow. I had a gnarly data-munging thing for work, one of those "garbage in, garbage out"-type things, except the expectation was "garbage in, $$ out". I couldn't see my way around all the tiny difficulties I foresaw arising.

When the pain of procrastinating became greater than the pain of just starting in on the work, I finally was able to make progress. It wasn't as bad as I had been thinking. So pessimism and cynicism seem to also play a role.

Anyway, a favorite saying of mine is "god don't do manual labor". I could pray for motivation (or meditate or whatever), but what was needful was for me to tolerate the feelings and get started. Hard to do!

Re:Show HN: EdgeDB – Next generation database on Thursday April 11, 2019 @06:59PM (#19640147)
The folks at magicstack have written some seriously cool libraries. Lots of neat cython stuff, postgres, libuv, http parsing. I really like reading their code.
Re:I Miss Rails on Friday March 29, 2019 @09:47AM (#19521624)
I completely agree. In 2008 at my first coding job we used plain php/MySQL with no caching and the sites were responsive. Plus they required like zero maintenance! In 2009 I went to work for a Django shop and was introduced to caching, reverse proxies/wsgi servers, templating, etc. It took a long time to buy in to this way of doing things, as it seemed intentionally complicated for no reason. Over time I've learned to appreciate that there are real benefits, but it wasn't immediately obvious to me. Regarding js templating, spa's, and all that stuff: I've tried to keep my previous experience in mind, and be open-minded about the potential benefits of these technologies. But I haven't seen any as yet.
Re:Google Tried to Patent My Work After a Job Interview on Friday November 30, 2018 @10:55AM (#18569952)
John 19:21, Then said the chief priests of the Jews to Pilate, Write not, The King of the Jews; but that he said, I am King of the Jews.
Re:Dealing with past trauma may be the key to breaking addiction on Saturday November 24, 2018 @09:37PM (#18525114)
I know, it sounds almost silly but its like being in addiction you're just so preoccupied with how you think you're going to feel.
Re:Sqlite: Code Of Conduct on Monday October 22, 2018 @04:00PM (#18277889)
I'm pretty sure, if you are offended by the word God, you can substitute another word, such as "Ayn Rand" or "the human intellect". Nobodys insisting that you have to do...anything really.
Re:Sqlite: Code Of Conduct on Monday October 22, 2018 @02:41PM (#18277131)
You wanna know how to tell if someone is an atheist?

> I'm an atheist

Oh wait, it doesn't matter -- they'll be sure to tell you.

Re:Sqlite: Code Of Conduct on Monday October 22, 2018 @01:15PM (#18276425)
If the code of conduct angers you, stop and think -- how did you feel one minute before you read the CoC? Is the problem really the CoC, or is it your collection of beliefs that is causing the problem? Furthermore, are you even affected? Do you contribute bug reports or patches? Follow the SQLite mailing list? Is anything here designed to prevent you from continuing to do so?

SQLite's author is a spiritual guy. There's nothing wrong with him borrowing from spiritual sources to describe his ideal for how he wants the SQLite community to conduct itself.

Re:LiteTree: SQLite with Branches on Wednesday August 29, 2018 @08:05AM (#17867557)
Looks like the speed comes from using lmdb rather than sqlites own storage layer.
ctypes is pretty slow in my experience. Cython is a nice alternative. Native speed and datatypes where you need them, plain old python anywhere else.
Re:30 years later, QBasic is still the best on Saturday May 26, 2018 @07:11PM (#17164674)
Yes! I had a completely surprising and visceral surge of feeling when I saw the screenshot of the UI. So many lazy summer days holed up with my 286 making silly shit. It seemed deeply magical. Like a portal to a secret world.
Re:Ask HN: Which books have made you introspect? on Friday May 11, 2018 @12:06PM (#17048437)
I am a literature major working as a software engineer, and I agree! Humanity has a very long history of story-telling. Often stories can tell us more than rational argument, since they hook-up with our intuition (rather than logic). This isn't to say there aren't laws in the Universe, but that the way we understand things is often emotional and intuitive. A good story can say so much about the human experience.
Re:Show HN: Dramatiq – An alternative to Celery on Sunday November 12, 2017 @06:55PM (#15683241)
Huey: https://huey.readthedocs.io -- even simpler :) redis or sqlite, mit license, greenlet/thread/process worker model support.
Re:The Depression Thing on Wednesday October 11, 2017 @04:20PM (#15453106)
It's a hackernews meme. Just ignore it and move on.
Re:The Shamanic View of Mental Illness (2010) on Thursday April 13, 2017 @10:27AM (#14107203)
Thank you for your comment. It's a shame. Only the most ignorant or naive reader could believe this garbage.

My youngest brother was diagnosed with schizophrenia a decade ago. I've watched him cycle through horrible psychotic episodes for years until he gained insight into his illness and agreed to start taking medicine. It's only since then that he's been freed from the voices that tormented him, and the paranoid delusions he would obsess over. He would tell you that there's nothing spiritual about the symptoms of his illness.

I'd also note that the guy who posted this also recently posted an article on LSD micro-dosing. Tells you a bit about where he's coming from...

Older »