Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
veltas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
181.
▲
by
veltas
1y ago
I agree, this is the whole point of "Hello world", which is to show the boilerplate required to start a program capable of outputting text, as well as the actual code that outputs that text. It's also the chance to get the b
182.
▲
by
veltas
1y ago
There's no VLA in my example.
183.
▲
by
veltas
1y ago
I agree with the article on the basis it's easier to not bother trying to use a convention of plural names as there's a lot of time-wasting edge cases, and generally it's less weird seeing no plural than seeing a plural in th
184.
▲
by
veltas
1y ago
Truly I agree, but if we can add features to improve C codebases without rewriting them then that's a win, and you can just ignore them if you don't like them (as I will), but to the people where this has benefit they can be used.
185.
▲
by
veltas
1y ago
You can do f(int n, int (*a)[n]) and it does what it looks like, since C99. https://godbolt.org/z/8dfKMrGqv
186.
▲
by
veltas
1y ago
That's why I asked, fishing for surprising but interesting information.
187.
▲
by
veltas
1y ago
Any relation to ActionScript?
188.
▲
by
veltas
1y ago
> That's a very unuseful way of looking at it. It solves nothing. They're not trying to give you facts that solve things, they're just giving you facts, as they see it. You can do with that info what you will.
189.
▲
by
veltas
1y ago
That video isn't conclusive and there's a lot of debate in the comments. Personally I agree with the people saying it's explainable.
190.
▲
by
veltas
1y ago
That's what I really meant by saying a parameter, it should be an option/flag that's given explicitly at invocation, or just a different program name.
191.
▲
by
veltas
1y ago
The environment variable isn't much better, both are akin to using a global var in your reentrant code, but at least STDDATA_FD is less likely to collide than 3. Can't wait for scripts using this variable for something unrelated t
192.
▲
by
veltas
1y ago
Using IX instead of HL or B even isn't going to break the bank. This code will still beat e.g. the output of SDCC on some normal C code.
193.
▲
by
veltas
1y ago
Unfortunately not surprising, the quality of a lot of textbooks has been bad for a long time. Students aren't discerning and lecturers often don't try the book out themselves.
194.
▲
by
veltas
1y ago
Someone tell Wikipedia please, they have a weird sort of moving/hidden hamburger that floats which I've not seen anywhere else, I wonder if there's public stats on activity following the layout update.
195.
▲
by
veltas
1y ago
Rather I think machine learning has made a lot more progress 'depicting' the world than 'understanding' it.
196.
▲
by
veltas
1y ago
> I drive rarely, but the oncoming headlights are blinding when I do. I drive a shallow car with old lights, and once I was blocked on a street by a much taller car sitting in front of me with very bright LED lights, and I couldn't
197.
▲
by
veltas
1y ago
This to teach a lesson about the perils of unnecessary mutability.
198.
▲
by
veltas
1y ago
Have to think of a translation for an EinfacheBeansFabrikBewusstAspektInstanzFabrik
199.
▲
by
veltas
1y ago
Yes that's exactly what I said :)
200.
▲
by
veltas
1y ago
Sufficient but a good idea to put copyright in all files. Technically if there's no license found then it should be considered automatically copyrighted, with no permissions to copy. So leaving copyright license out actually makes it
201.
▲
by
veltas
1y ago
Credit to Simon Tatham https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
202.
▲
by
veltas
2y ago
> So many people will now joke and say something about wide screens being available And this is a silly point because I want to be able to put 2-3 files side-by-side, on that big monitor. Who are all these people asking for long code th
203.
▲
by
veltas
2y ago
Focusing on 'wealth inequality' usually leads to policies that hurt the economy, and make us all poorer, and actually increase the inequality. It hurts poor people more than the rich when we make bad economic decisions, and this
204.
▲
by
veltas
2y ago
Except people don't eat money, so raising supply needs to be done in a way that won't kill the economy.
205.
▲
by
veltas
2y ago
The issue with the current system is it gives a lot of money and power to banks, and finance. The issue with the proposed system, is that debt is actually a good thing for normal people. For example if you are young, productive, and come f
206.
▲
by
veltas
2y ago
You don't want more immigrants, you want more skilled and young immigrants. This is an important calculation that's missing from public discourse, instead most people will say "yes immigrants" or "no immigrants&quo
207.
▲
by
veltas
2y ago
> This is really more a C pattern than a C++ pattern, isn't it? You're right, although it feels a bit safer in C++ with the extra type safety. And that in my mind makes it more powerful in C++.
208.
▲
by
veltas
2y ago
Almost to a weird extent, this is the only software that most of us will ever be able to write, code that we could write the MVP for in a day. Because anything else is too hard to see to completion. There's something to be said about
209.
▲
by
veltas
2y ago
Working as a regular delivery driver in sprawling futuristic underground tunnels sounds awesome, not going to lie. To each their own.
210.
▲
by
veltas
2y ago
A good picture, unfortunately most modern apps are full of meaningless icons.
More ›