Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
publicdebates
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
181.
▲
by
publicdebates
10mo ago
In this example, the human author clearly intended mutual exclusivity in the condition branches, and this optimization would in fact destroy that assumption. That said, (a) human intentions are not evidence of foolproof programming logic, a
182.
▲
by
publicdebates
10mo ago
To those who are just as confused as me: Compilers can do whatever they want when they see UB, and accessing an unassigned and unassiganble (file-local) variable is UB, therefore the compiler can just decide that *foo is in fact always 42
183.
▲
by
publicdebates
10mo ago
Nice to see people focusing on efficiency instead of web/electron bloat.
184.
▲
by
publicdebates
10mo ago
Right, and that proposal was withdrawn, and a new one, the one we have now, was proposed based on lessons learned from (or inspired by?) React/Vue. Maybe there was a common ancestor or general consensus about the techniques floating ar
185.
▲
by
publicdebates
10mo ago
> a technique known for 30+ years in the industry have been Knowledge sharing with next generations is one of those very tricky things. For one thing, how would I know where to find this? What book? What teacher? There are so many books,
186.
▲
by
publicdebates
10mo ago
As far as I can tell, the whole web components umbrella came into being because React/Vue got really popular, and the spec/browser people said hey let's bring the core common denominator of those into native HTML/JS, as
187.
▲
by
publicdebates
10mo ago
I've used Ruby and Lua for about 15 years now, and looked at mruby (and possibly used it, I don't remember) about 10 years ago. Having little else to contribute to society anymore, perhaps my insight on these two languages might b
188.
▲
by
publicdebates
10mo ago
Important enough, or benefits them directly? I have no good guesses how improving Python's performance would benefit them, but I would guess that's the real reason.
189.
▲
by
publicdebates
10mo ago
"Show HN: I implemented generics in my programming language" does not deserve the roast "I built a language nobody will use just to learn generics" It's not fair to assume the author didn't know how to implem
190.
▲
Will open source Lua-WinAPI binding for money
(lowkpro.com)
3 points
by
publicdebates
10mo ago
|
0 comments
191.
▲
by
publicdebates
10mo ago
Two problems with that. First, it would mean that all Lua objects would be allocated in memory that's potentially executable. That might not necessarily be more of a security issue than the app inherently allows, but at least it'
192.
▲
by
publicdebates
10mo ago
Can you set arbitrary memory allocated by malloc (e.g. HeapAlloc in Windows) to executable, via VirtualProtect or something else? If so, that's news to me. I thought it had to be memory allocated by VirtualAlloc only. That said, I'
193.
▲
by
publicdebates
10mo ago
The bigger problem is that I would have to automate this for every callback type in the Windows API, and there's no guarantee that all of them follow the same 2 or 3 patterns for passing the context pointer into the callback. This so
194.
▲
by
publicdebates
10mo ago
It was inspired by that post, but not in response to it. Over the 3 or 4 months that I took writing lowkPRO, one of the features I'm most proud of is this, the ability for it to create C callbacks on the fly that just call Lua callback
195.
▲
by
publicdebates
10mo ago
I wonder if the design of D-Bus has anything to do with a principle I notice a lot, where the most meritorious solution never rises to the top for any given problem, but rather one apparently chosen by absolute randomness . For example, I
196.
▲
by
publicdebates
10mo ago
Reposting because CSS was badly messed up on mobile last time, fixed it since.
197.
▲
Creating C closures from Lua closures
(lowkpro.com)
2 points
by
publicdebates
10mo ago
|
1 comments
198.
▲
Creating C closures from Lua closures
(lowkpro.com)
60 points
by
publicdebates
10mo ago
|
16 comments
199.
▲
by
publicdebates
10mo ago
I made this because many people have requested an AHK alternative with something like Lua. Also, this ports the entire Windows API to Lua, so it's not limited to just the convenience APIs. The website is not good at explaining this,
200.
▲
by
publicdebates
10mo ago
I'm a Kings Caslon kinda guy myself. Partial to those more practical fonts. Can't beat 1800s print, they perfected the art by that point.
201.
▲
Show HN: Automate Windows Using Lua
(lowkpro.com)
2 points
by
publicdebates
10mo ago
|
3 comments
202.
▲
by
publicdebates
10mo ago
I miss the low res aesthetic of WC2. It's so sad that everything has to be high res nowadays. I never really liked WC3, maybe for that reason. And although SC1/2 brought genuine improvements in the genre in many ways, there's
203.
▲
by
publicdebates
11mo ago
I understand, but you have to see how you would be considered one of the Standards-Purists that I was talking about, right? If Microsoft makes a guarantee in their documentation about some behavior of UB C code, and this guarantee is date
204.
▲
by
publicdebates
11mo ago
I think it's common to be taught that UB is very bad when you're new, partly to simplify your debugging experience, partly to help you understand and mentally demarcate the boundaries of what the language allows and doesn't
205.
▲
by
publicdebates
11mo ago
Good write up, I like where you're going with this. Your article reads like a recent graduate who's full of excitement and passion for the wonderful world of programming, and just coming into the real world for the first time. For