HN user

_pgmf

2,502 karma
Posts4
Comments46
View on HN

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.

Redis 6.0 GA 6 years ago

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.

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.

I was tempted to dismiss it....

Goes on to completely dismiss it.

This is an amazing project and much more than a theme/skin, and obviously a labor of love. Glad to see it on HN getting some well-earned kudos.

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/

Couple points:

* how did you settle on 10 seconds? Keeping two databases in sync is a complex process. I'd suggest that the difference between running 1x/min or 6x/min is negligible -- and if it's not then probably you need something more sophisticated than a simple cronjob.

* I am providing free software. You are not contracting with me to provide developer support, so in my book I'm under no obligation to be courteous and polite all the time. I try to be most of the time, but nobody is perfect. Luckily the source is available if you don't want to talk to me. That was my point and I'm surprised that is so triggering to some people.

* Closing an issue is not deleting your thread.

Python Type Hints 7 years ago

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.

404 Page Not Found 7 years ago

Internet culture is always changing. A devoted core of people is doing something cool, new people come in who are just there for the scene, finally (in the cases discussed in the article) business interests co-opt it and it becomes sterile. This is described in the article geeks, mops, and sociopaths, if you're interested.

I liken fb to reality TV. Everyone can be a star. Like Warhol said.

Twitter is pushing some weird buttons. I think it attracts narcissists, and gets people hooked-up on their own chemistry. I've always had a really low opinion of twitter users.

Missing old shit is death. Just start making the things you care about or are interested in.

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.

The advice in my post that you linked can be supplemented by this:

http://charlesleifer.com/blog/compiling-sqlite-for-use-with-...

Describes several handy ways to compile sqlite for use with python (2 or 3), as a system-wide shared library or compiled directly into the python module. This can also be applied to sqlcipher, etc.

If you don't know how to compile sqlite, I'd argue that you have no business trying to use it's more advanced features. How can you tune or optimize something you don't understand?

Furthermore, your library is stale. Anyone using it is dependent on you to merge in upstream changes constantly. And based on what I saw, it's already well out of date.

Looks like it just bundles a full build of the sqlite shared library, along with some kind of gross hacks. It bundles pysqlite2, which notably is missing a ton of features and improvements from upstream. I'll just compile my own, thanks...

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!

I Miss Rails 7 years ago

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.

Streams are kinda cool but they have a distinctly different feel than the other data-types in Redis. They've got this invisible statefulness. Last ids, consumer group state, etc. I've tried implementing a couple little things with streams, and it's not necessary to use the consumer group stuff or whatever of course. I wonder why streams weren't made using the modules API, though? They seem just weird/different enough to warrant exclusion from the core data types, in my thinking. Anyways, just reading the title referring to streams as "pure" made me go wtf? Because there's a lot of hidden state in there.

An Honest Living 7 years ago

The line that expressed the author's opinion most clearly to me was this:

Public discourse doesn’t exist in a free market.

I read the article as an indictment of capitalist forces, which pressure people into conformity as a path towards, ironically, (economic) freedom.

The author is fighting and is in conflict. I wonder, though, if there is another way, so that freedom doesn't have to come through either blind conformity or "me against the world" conflict. There are a lot of things in our world and our culture which I don't like, yet isn't recognizing my powerless to change the world to my liking an equally valid path to freedom?