Better HN
topnewbestaskshowjobs
Log inSign up

shortrounddev2

2,427 karma · joined Jun 15, 2023 (3y ago) · 1,641 submissions

Submissions

comment 2y ago · link · parent

SDL2 added floating point versions of most rendering functions

comment 2y ago · link · parent

Economic development is the best way to get technology into the hands of the poor. It's why even homeless people have smartphones in the US

comment 2y ago · link · parent

I meant that the European economy is not growing; Germany has had 0 or negative GDP growth for about a year now. People move from the US to Europe for a lot of reasons, not necessarily because of economic opportunities. I think the most common kind of expat I see is someone who works remotely for a US-based company and enjoys the relatively lower cost of living in Europe. This is not an indication of strong European growth, it's an indication of the buying power of the dollar compared to the Euro

comment 2y ago · link · parent

If Intel somehow needed to sell its hardware, could the US block any sales to non-US based companies?

comment 2y ago · link · parent

What is a machine ID in this case? Surely the useragent isn't exposing the MAC address of the user. Is it just a first party cookie added to the current browsing session that is meant to be a facsimile of a "machine ID"?

comment 2y ago · link · parent

Isn't AMD an American company

edit: I guess they don't manufacture their own chips though

comment 2y ago · link · parent

I don't think Silicon Valley has really been the standard bearer for software engineering jobs in at least 5 years, I'd reckon as far as 10 years. The pandemic also has hollowed them out as well. You can find high paying software engineering jobs in plenty of low cost of living states these days. That city has very sharp problems that it is failing to solve and when given a choice, many people choose not to live/move there

comment 2y ago · link · parent

I agree; in my state, the universities are not required to have open source textbooks, but if they do use them, they are required to mark them in course catalogs so that students can pick them. I have yet to see this in practice though

comment 2y ago · link · parent

No, you're right

comment 2y ago · link · parent

Africa will soon emerge as an important market as well, particularly Nigeria. Japan and Korea are, as you said, not only stagnating but deflating (in the case of Japan). I believe GDP actually declined in Europe recently so I think Europe will shrink as a market in the coming decades unless they can fix demographic pressures and improve entrepreneurship. The US faces similar demographic problems but we have unique solutions to those problems that means that GDP growth is stronger in the US than virtually anywhere else in the world. India is a more mature "growing economy", and at this point I think the whole world is aware of the opportunities there. As you pointed out, Malaysia and the Philippines are growing, and so are other SE asian countries like Viet Nam and Thailand (though Thailand has struggled to grow since the pandemic, it's shown good growth since 2000).

Africa is the untapped market right now; Nigeria is expected to exceed 400mil (if not 500-700mil) people by 2050. I don't know as much about their economy, so I'm not sure if this growth has translated into the kind of infrastructure which would create more demand for computing services (i.e: I don't know what smartphone or 5G penetration is like there), but I would bet that if it's not ripe yet, it will be soon

Europe needs to solve its demographic pressures by either accepting more non-EU immigrants or doing something to encourage women to have more children, which would require solving for the opportunity cost (i.e: career stagnating or ending) that women bear 90+% of the time they have children, as well as the FOMO issues (which I don't think government can solve)

comment 2y ago · link · parent

Quality of life is pretty high in the US for salaried workers (health insurance is good at these jobs usually). Work/life balance depends on the company. If you work in a low CoL city, life is very nice (compared to larger, more expensive cities like SF and NYC)

comment 2y ago · link · parent

Prohibition did nothing to stop usage, I doubt it did anything to stop usage while driving

comment 2y ago · link · parent

Low salaries to me indicates they believe it is a Germanic ideal to pay subpar wages for highly skilled engineers? I don't think it's a mentality thing, personally, I think it just speaks to the weakness of the European economy for the last 20ish years

comment 2y ago · link · parent

But I mean what is that mentality

comment 2y ago · link · parent

The European market has always seemed like a tertiary market compared to the US and Asia. I think that's because, despite having some raw number of euros to spend on a product, the European economy has struggled since 2008 compared to the US and Asia, and huge corps which are obsessed with growth don't see an accelerating future for Europe as a customer base.

comment 2y ago · link · parent

They have no choice though

comment 2y ago · link · parent

Yeah canvas and blackboard were are one point startups, I'm sure there's some products that can scale, but the market is probably driven by bureaucratic compliance more than a genuine desire to improve the quality of education for students

comment 2y ago · link · parent

I learned that through brute force. They just had us multiply numbers over and over again rather than memorizing the table

comment 2y ago · link · parent

Virginia

comment 2y ago · link · parent

They don't teach multiplication tables anymore as far as I know. I didn't learn them and I was born in 1995

comment 2y ago · link · parent

I think Quake 3 used a bit of genetic algorithms to optimize some of the variables of the bots

comment 2y ago · link · parent

Protectionism on behalf of the car companies and dealerships and the cancerous culture of car first infrastructure.

comment 2y ago · link · parent

Exactly. You can selectively gate access to the data but still have it served from a cdn

comment 2y ago · link · parent

Rather than allowing any object on a bucket to be downloaded by its raw URL (i.e: http://mycdn.io/abcdefg.jpeg), the backend service needs to generate a "signed" url, which is a short lived URL that grants the user a single request against that resources (GET, POST, PUT, etc.) (i.e: http://mycdn.io/abcdefg.jpeg?signed={securerandomstring}) So you can only use the URL to download it once, and you need to go through the backend API to generate the presigned URL. This could result in your backend getting hammered but you can also use DDOS protection to prevent 10k requests a second from going through your backend

Theyre also a good way to allow users to upload images to your CDN without having to actually upload that data to your web API backend; you just give the user a presigned PUT request URL and they get a one-time ticket to upload to your bucket

comment 2y ago · link · parent

> it does have a debugger with breakpoints, which even supports time-travel debugging (except on windows obviously), but i've never used it. it even has first-party ide integration: https://ocaml.org/manual/5.2/debugger.html#s:inf-debugger

1. I am developing on windows so that's an issue for me and

2. I don't use emacs, I use VScode and I've not been able to get the experimental debugger working for the VScode plugin.

It's not that the debugger is purely for fixing bugs; I use it as an active part of development. I want to be able to freeze the program and inspect values as they are running. I may know what the types or state of the program are just by viewing the code, but I want to be able to inspect the actual data for myself as the program is running.

> debug logging shows you the whole history of your program's execution rather than just a single point in time

breakpoints also provide stack traces, so they provide a kind of history as well. I'd rather inspect and interact with a program than dig through thousands of lines of logs

> breakpoint debugging requires a lot of manual labor, painstakingly operating the machine to navigate the execution to the state that has the problem

I see things the opposite as you: print debugging is tedious and requires restarting the program from the beginning whenever you make a change to the source, unless you are constructing your program piecemeal with the repl, which I consider to be extremely tedious as well. To me, a debugger with breakpoints is a far more efficient way to code than print debugging.

I think there is a cultural difference in software engineering between people who use debuggers and people who don't. John Carmack once pointed out that people who come from the game dev and Windows/PC world use debuggers while people from the linux and web dev world tend not to. It seems to be a matter of preference/taste, and I think FP programmers seem to have a distaste for debuggers and graphical debugging/development environments

comment 2y ago · link · parent

ANTLR generate a visitor system from a BNF grammar that you need to implement the logic of in your chosen language, which I believe is similar to C++'s std::visit. lex and yacc generate state machines using BNF grammar and you implement the logic in the tools themselves

comment 2y ago · link · parent

I really really really want to get more into Ocaml but as far as I know there is no good support for a debugger to use in an IDE like VSCode or even vim. Everyone I talk to says they just do print debugging. It's easier to 'reason about your code' in FP, but I do NOT want to go back to a time where I coded without breakpoints. I use F# because of its first party tooling support

comment 2y ago · link · parent

The lack of customization in modern apps is a real shame. The world of software used to be far more creative than it is now. Skins for media players was a big deal in the past. These days, if you DO get to customize your apps, it's usually a choice of preset themes, or at best you get to choose a color palette rather than fully redesigning the UI. Spotify doesn't even have a light mode

comment 2y ago · link · parent

CS. I want to use math in my job and work on some of the more interesting problems instead of just making CRUD webapps forever. I also liked the math classes I took in my CS degree

comment 2y ago · link · parent

For modern 5G infrastructure, GSM vs CDMA doesn't matter. However, for older phones that run on legacy networks it will only matter up to the point that they dismantle anything older than 4G I believe
1
232425
55