HN user

paulriddle

110 karma
Posts17
Comments62
View on HN
news.ycombinator.com 5y ago

Ask HN: What's your opinion on Win32 API?

paulriddle
1pts0
www.youtube.com 6y ago

The Joy of Programming in Jai [video]

paulriddle
1pts0
samsclass.info 6y ago

CNIT 127: Exploit Development

paulriddle
1pts0
4coder.itch.io 6y ago

4coder text editor version 4.1 for Windows

paulriddle
2pts0
news.ycombinator.com 6y ago

Ask HN: How to Cross-Compile with Clang?

paulriddle
1pts0
danzaidan.itch.io 6y ago

Game livecoded in C from scratch and released on Steam

paulriddle
2pts0
news.ycombinator.com 6y ago

Ask HN: What software your company couldn't use because of the license?

paulriddle
1pts0
wayland-book.com 6y ago

The Wayland Protocol book early draft available

paulriddle
3pts0
remedybg.itch.io 6y ago

RemedyBG 0.2.8.3 a lightweight debugger for Windows

paulriddle
1pts1
writing.kemitchell.com 6y ago

Open source advice for new programmers breaking into the industry

paulriddle
4pts0
news.ycombinator.com 7y ago

Ask HN: Turning Windows into a high-quality development environment

paulriddle
4pts33
news.ycombinator.com 7y ago

Ask HN: Do You Cuss in Meetings?

paulriddle
10pts16
testwithgo.com 7y ago

Screencasts on testing with Go, 40% off this week

paulriddle
1pts0
news.ycombinator.com 7y ago

Ask HN: Transforming Code into Audio with Navigation

paulriddle
2pts0
about.gitlab.com 7y ago

Starting and Scaling DevOps in the Enterprise

paulriddle
1pts0
news.ycombinator.com 7y ago

Ask HN: How to justify time spent on updating dependencies to managers?

paulriddle
3pts0
news.ycombinator.com 7y ago

Ask HN: Extremely negative and positve blogs about career in software

paulriddle
1pts0

I think for the vast majority of cases it is better to use whatever you're most comfortable with. Some people just don't have the endurance to learn gdb or lldb, or they are allergic to Visual Studio on Windows because of how big and slow it is. They just use print statements instead. Some people have learned a few workflows with a debugger of their choice and for them it is easy to fire up a debugger.

However, for some things like debugging Windows kernel trickery it is impossible to use print statements.

Personally I like debuggers.

But unless you're investing other people's money, you are a small fish in the sea. Like, if all you have is 200k then none of your decisions being public would affect you in a negative way. Admittedly, I don't know much about the stock market but I can't imagine anyone caring if you want to short some company's stock.

I know some people are going to complain as with every redesign. But I really like how clean and uncluttered this feels. Lighter blue color, less bold text, dense side panel, misaligned repository header. Ok, it's not really uncluttered. But I think it's good that contributors are more explicitly credited now.

It's funny how carefully you're stepping around financially rewarding people who do the work. It's like you know your status does not allow you to own the money generated, so you're settling for owning the results, the process, the method, the responsibility, the all. You are weak.

A debugger inspired and somewhat popularized by the Handmade Hero screencast series. Primarily for C and C++. Some people say good things about it and happy that it is being developed. Since it is a paid tool with no demo, you might want first to see it in action before purchasing. A good introduction to the debugger is simply watching a few videos of it being discussed and used by Casey Muratori. Go to the screencast page [0], scroll down, and and the search field (which accepts regexes by the way) type 'remedy'. Click on everything. You might also watch a 2 hour long episode discussing debuggers in general [1] and why Visual Studio debugger is not ideal [2].

[0] https://handmadehero.org/watch [1]: https://youtu.be/GfGNPo9Z6mA [2]: https://youtu.be/vohsUKjg9tU?t=33

It is still early days for the debugger, so it has bugs and might crash. Another downside is that it is closed source which might be difficult to reconcile with today's culture of open source. It is really unfortunate because author said it is developed completely from scratch using very few third party libraries. Because of that it would be interesting to take a look at the source and perhaps hack on it. But people are buying it anyway.

I urge everyone who might be interested to support the development of remedy, because I want the project to succeed.

I'd like to go a little meta.

If you really want to do it, then stop looking for a reason to do it. Because any piece of text containing the answer is probably going to fit in a few HN comments, because that's what you're currently looking at, an HN thread. You are looking for a small piece of text giving you the reason to limit your information intake and providing a technique to do so.

Most likely you won't find what you're looking for. And even if you do find something that appears to be that, it will be inferior to your experience of actually doing that. Imagive a set of all possible HN comments. It contains no element that is better than you simply deciding, without any good reason or a way to do it clearly formulated in your mind, to simply set aside a couple of weeks and read only one book exclusively.

Now you might have two objections.

First, what if the piece of text is large, like a book? To that I'll say that books have to satisfy publishers and earn a profit, which manifests itself in disgusting ways like containing a lot of filler text and flawed case studies that presumably prove the author's point. I couldn't read "Shallows: What the Internet Does to Our Brains" and "Deep Work" because of that. All books about talent or peak performance are pretty much worthless in my eyes. I might be wrong about their value, but one thing is certain - they do not contain a clear answer and come with it's own set of issues.

Second, my claim that taking two weeks and doing one thing is better than any HN comment. I'll say it doesn't even matter. Two weeks are gonig to pass regardless, so you might as well try doing that instead of simply looking for a piece for text saying whatever. You might decide to do two things or three. That's fine, the point is to get meaningful experience doing a few things over a period of time. It could be that it is simply not for you. It also could be that your brain, physically, reached the point where neurons are wired in such a way that you're never be effective. Good luck rewiring this mess with an HN comment.

You misunderstand me. What if I'm the monopoly who wants to jack up prices and extort? I. Me. And a few select people working for me who I reward, plus a bunch of nameless employees who I don't care about. But primarily me. Then there is no problem is there?

Anyways, my apologies. I see I really pinched a nerve here. I will become smarter and understand the basics of big businesses. It's a good thing to do especially if you want to become the monopoly, right?

I see what you're saying. But I'm curious what the future you described will actually look like. I am NOT curious in the least about the good old days. I know it, it's boring to me. Having privacy and total control over your computing is fine, whatever, I've seen it a thousand times already. It's good. But in today's world what is the benefit of that? The market doesn't respond to that, does not reward it. Human psychology likes the alternative of thin client and total survelience much better because it's more convenient and because it already has more momentum.

So I'm curious what will happen when you can't do almost anything on your computer without it being inside proprietary cloud. When everything I do is recorded, aggregated, and analyzed by mismanaged big data experts. When real life decisions are made that affect me based on this data by some faceless entity without consulting me. Kind of like what China does with their social credit score but much more elaborate. When there are people who are within this system and those who are outside because they are rich and powerful.

It really fascinates me. It can't get so bad as to be intolerable in my lifetime. And what if I become rich and get real power? The ability to make important decisions that change the global landscape. Will I be good or evil? Nowadays rather than complain about the top 0.0001% it's better to put the energy into becoming the top 0.0001%.

And by the way, you never owned Warcraft or Diablo. I suspect that to satisfy you all one needs to do is to realse a few really good and engaging games. You shall have your games and you will play them in the evenings. But during the day you WILL write survelience code for collecting plausable reasons to crush somebody inconvenient to the illuminati.

These companies provide political value. I think of them as black boxes that don't really do anything to its input but give political weight to the arbitrary claim associated with the input. Want to cover your fuckup on a project? Hire Accenture for a few months to do something meaningless, like produce a report with all the problems in the project. Change nothing. Then say that clearly the project is more difficult than you've anticipated, you even retained a consultant that said this and that. More resources are required.

You can do training sessions for people you want to advance or hold back. In both cases sessions would be meaningless and void of any real value, except that they assign attribute Foo to the group of people. Then you can say that only people with Foo can do Bar, moving those people forward in their career. Alternatively you can overcome some bureaucratic obstacle by claiming that you do Foo regularly, which is a requirement from some authority for some reason.

I don't really know how this kind of politics works, but this is how I tend to think about it.

I wanted to try it out just for 5 minutes, but alas, I'm on Arch Linux and can't compile. GNU Make complains about dots in the Makefile (things like .include and .if) and there are probably more issues like BSD specific .include <bsd.subdir.mk>.

It's the early days for the tool but hopefully it will become available on Linux in the future. Because the world totally needs yet another git wrapper and visualisation tool. I jest of course, but there are already a few tools I wanted to learn but never dedicated the time for. For example hub command line utility for working with github. git-extras for lots of small things like repository statistics. fugitive.vim, a vim plugin that claims to be a git wrapper so awesome it should be illegal.

Recently I had to find out why a section of code was written a certain way and decided to hunt for the commit that introduced it. The only way to do it that I'm currently familiar with is by using github blame interface. The code was moved around so regular blame showed the commit that moved the code instead of introduced it. Github allows you to jump to a commit before the change, so I did that a couple of times while looking at the diff of where the code was removed from, because this was the place I actually needed. Overall I felt rather clumsy doing that and wondered if learning to do it on command line would be easier in the future. How can tog help here? Avoiding learning to use git on command line by itself isn't a good idea in any case, but a proper browser that allows to easily dive through history without shell trickery or a dozen of HTTP requests is a welcome addition.

Also, for tools like this I think video demonstration is best.

Batch Style Guide 7 years ago

I heard some people say screw these CMake, Autotools, Makefiles, Ninjas, mesons, etc. Compilation of even big projects takes seconds. Just use a batch file on Windows and shell script on Linux. It was Casey Muratori on his Handmade Hero stream. I think he is right and most projects don't need even a Makefile.

I've been learning CMake recently and it seems that quite literally every part of it is ridden with edge cases and weird bumps. Like:

  - Variables can have a type, but it's not really a type, it's for GUI only.
  - There are cache variables but regular variables take precedence except if you set a cache variable with FORCE. But if you do so, then it hides the normal variable and you get different behaviour on subsequent runs.
  - Variables can be combined in an array, except it is a string separated by ;.
  - There is a bunch of deprecated syntax that you shouldn't use but should be aware of. You should start your CMakeList.txt files with a weird conditional that sets the minimum required version using a syntactic hack.
  - It ignores $CPPFLAGS in some cases, Arch Wiki said so.
  - There are multiple values for true and false. Things like YES, 1, ON, TRUE, NO, 0, OFF, FALSE.
  - For older versions of CMake a string literal can evaluate to the value of similarly named variable.
  - It is really a programming language. There is seems to be so much to it, it doesn't look limited
I just started to learn. It's not a big deal, but it feels messy.

Yeah, I always forget about that. Of course somebody works on the factory and has to pee in the bottle. I'm wondering how is it really like for those who actually make stuff for giant corporations? I heard it's pretty bad, that these people are being exploited, but I also heard that it's not that simple and the conditions are not that bad actually, and the alternative is even worse.

Google has more potential to harm. Imagine if they come up with a technology to replace HTTP and HTML, so that you can't modify web pages you visit. You open up a website and it's like you're looking at a video stream of it, except you can interact with UI elements but can't remove ads. Then they make your browsing history immutable and available to companies that can affect your career and finances. Of course they will leave the option to make it "private" if buy a premium account. Then they become an internet provider and ban VPNs and proxies. Then they make it required for you to consume ads for one hour per week, otherwise you loose access to the internet and your data. Then they implant an electronic device in your brain so that this happy hour of ad consumption happens against your will. Of course you will have the freedom to choose when to engage in it: 15 minutes before going to bed for a few days, or the whole hour right away. It interacts deeply with your brain, ruthlessly rewriting neural connections unlike visiual stumulation by eye. Then the government acquires this technology and they choose to inflict pain on those who disobey or has something to say. Then they learn to read the minds in a crude way. If you plan to do something about it then your brain is forced to experience the maximum pain it is capable of experiencing. It all happpens automatically. Those in control do not wear such devices.

Does anybody have any science fiction recommendations along these lines?

I don't get the hate against Huawei. Not that I've seen much of it. Google are not the good guys overall, neither is Huawei. The two companies do good things and bad.

I've recently watched a talk by Jonathan Corbet on Linux Kernel Report [0]. At one point he asked the audience "Who's running Linux on their phone?". Lots of people raised their hand. He then said "Well, are you? Because a lot of companies have as much as 2+ millions of lines of custom kernel code on their devices. Huawei in particular has 2.7+ millions. If the kernel currently is at about 24 million lines of code, and you only need a small subset of that for a phone, then what you end up with is something different than Linux." It happens at approximately 30:40 in the video. I have a suspicion that HarmonyOS is just what they have now plus another 200k+ lines of code or so to change the look.

[0] https://youtu.be/yt29BKVfI0I

Correct, but I'd like to point out that responsibility does not imply consequences. If the higher-ups mess up they can blame it on those below them. Usually it is done in an indirect way by setting expectations. For a lot of people, if they are the ones setting expectations they mentally take themselves out of the equation, assuming they are good. They might be wrong.

Martin Shkreli said $100k is not enough money to start investing, you can't do anything with such a low amount. The reason for that is because investing is competitive, you have to make smart decisions. To make smart decisions you have to spend a lot of time and effort evaluating companies you want to invest in. If you actually spend this time and effort, you won't have enough time for anything else. With your $100k you will be happy to make 10% in one year, so it's $10k per year full time.

You need millions of dollars, then it starts being worth it. You should listen to Martin Shkreli, even though he is in prison for fraud, because he knows more about investing than almost anybody here on HN. Most people on HN will not be able to record 1 hour video talking about investing, let alone 35+ of them. They don't have the stamina and knowledge. They also don't have the results to back up their advice, unlike Martin Shkreli.

It seems foolish to think that you can spend just a few hours per week and think you're going to beat the market.

I don't want to insult anyone, I myself don't know much about investing. The reason why I mention Martin here is because his videos on youtube are very accessible for layman people who are uninformed about the market.

I've been reading Modern C too. I don't know C well yet, but can say that the book is very raw and in dire need of heavy editing. It seems that it will officialy be released in September via publisher, so hopefully this will improve things. It has lots of typos, LaTeX markup errors, and pacing issues. In the past, some people on HN rightly pointed out that the book contains some code trickery. I haven't finished it yet because it is a very dense book. Still, I feel it is definitely worth reading.

What disappointed you about the book?

Books for general audience are filled with light content. That's just the way things are nowadays. It is not going to change. Any self help, any book about basics of something is going to have massive amounts of filler. I remember listening to Shallows: What Internet Does to Our Brains, and just suffering from being forced to listen to history about reading. How the monks or somebody read in the past, how valueable it was. I didn't care about any of that. I wanted to hear stories about people falling into deep depression because of too much internet. I wanted summaries of research into changes of the brain addicted to the internet. Instead what I got was history of papyrus, and what came after that, how novel it was, and how books became available for everybody, not just select few. How monks read aloud, and how there was one special monk who could read without speaking words. Terrible book.

I remember reading something about geniuses and high performance individuals, and of course examples were about sports. Because everybody understands sports and the book was for everybody. I wanted to read about workings of the minds of best mathematicians or professionals in intellectuals fields, like engineering, programming, businessman. As I was reading I felt physically ill, until I closed the book, yelled as loud as I can "BWHAAAAAAAAAAAAAAH" and made a cup of coffee for myself. I realized that most of the books I wanted to read were fluff written for the publishers and editors. Not for me. I can get the idea from the title, description, table of contents, and maybe a few Amazon reviews.

I notice the same thing with technical books. Sections about history, long winded explanations of what is going to be taught paired with long conclusions. Recaps. I can't tell you how many times I've read history of Linux, and I can't remember anything about it: these mad diagrams of standards, what came from where, and how it was improved, extended and replaced by something else. I wanted to read a book on algorithms, a free one, it had very warm reception on HN[0], and guess what? It starts out with history of numbers. With detailed names of people who came up with ideas, of places, and even pictures. I hate these forms of introduction. But the book still seems to be good. I can recognize whether a book is "heavy" or "light". Heavy books often have exercises, they start fast, and go deep. Light books just can't get to the fucking point.

Heavy book: Computer Systems: A Programmer's Perspective Light book: Practical Object-Oriented Design in Ruby: An Agile Primer

[0] https://news.ycombinator.com/item?id=18805624

Do you think HN owners have contracts with some companies to keep them on the front page? I always see these links to BBC, New York Times, Reuters, Techcrunch, theregister.co.uk, etc. on the front page. Who upvotes this crap? These are regular news that don't belong on HN.

I think it's unlikely, but still it's annoying to see stuff like this here. I'm not against it, but it's always there. It got to the point that I started thinking about rtv like program for HN that has built-in recommendation system based on my favorites. Strong filters too. I know there is haxor-news, but it's not that. I want to be able to get a listing of stuff only related to my favorites and favorites of HN users I whitelisted.

I remember internet cafes in Russia back in 2004. I was 11 years old at the time and was a common visitor. My father dropped me off at one of these cafes for an hour one time and I ended up playing GTA 2 the whole time. That's how I was introduced. It was actually my very first time using a computer. I had Playstation and SEGA before.

I remember showing up early in the morning before 8AM and there were already people waiting in the hall. Time was cheaper in the morning and you could buy a "pack" of 3 hours for 100 rubles which was equivalent to $4. It was also sometimes dangerous because older guys used to bully younger people and take their money. I remember one time I was walking out of the cafe after playing for 4 hours and was approached by 2 guys, slightly older than me. One of them whipped out a knife and said: "Give me all your money or I'll slice your throat, I don't give a fuck, I'm minor so nothing bad will happen to me". I knew these two somehow. They had a reputation for attacking and robbing people, so they weren't fucking around. I gave them crumpled 10 rubles and said it's all I have left, because I'm going out of the cafe, not in. They should be stopping people who are going in. They believed me and let me go. I had another 500r on me and was glad they didn't check my pockets. Later this evening I came back to play more despite being afraid of getting mugged again, that's how strong my addiction to these cafes was.

To be frank those places weren't like cafes at all. We called them clubs. All they had inside were computers with LAN connection. Internet was there as well, but it wasn't popular. Most people were playing Counter Strike or Battlefield. Most clubs were managed by a single person, an admin. Those people weren't owners, they were just there to take money, allocate time to specific computers, and to tell people to get out.

Hey can I buy the book through you? My card gets rejected, but I know my card is fine, it's the payment service issue. Yesterday I sent an email and a tweet[0] to the author, but he didn't reply. Basically, I want to pay you £36, you send me the pdf and buy it again. If you want to help me out, then send me an email. My address is in the profile.

[0] https://twitter.com/pau1riddle/status/1116205409780600833

The point of cussing is to add emotional color. Remember that and don't judge people who cuss in a cool way. They don't judge you for being dry or uptight. As an example of how useful cussing can be, imagine that you want to critisize your manager for being unpersonable. Calling him fuckface, a dick, an asshole, to his face would help. If you can't do it, there likely a huge problem in your relationships, or it simply isn't your communication style. But if it is and you can do it, it has power. Good vibes when critisizing.

Now I overthink this whole thing and went too deep in my comments, failing to do it fluently. I still belive cussing is an important tool in communication, and if it is frowned upon to cuss in a room, then I doubt it is a room filled with winners. They are concerned with superficial instead of essential and lack emotional intelligence.

I hink you are wrong to blame cussing here, it's mostly about emotions. If you were cussing from a place of frustration or complaining, then of course it would make people feel worse. Even without cussing. But if it helps you think more positively then it's good.

Yeah. When you don't feel close and safe, it's bad, it means there is a problem. It means there is no trust and it is going to slow everybody down, make less intelligent and efficient, and the company is going to lose money.