Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
trealira
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
781.
▲
by
trealira
3y ago
There seems to be a lot of research into compiler optimizations guided by machine learning: https://github.com/zwang4/awesome-machine-learning-in-compil...
782.
▲
by
trealira
3y ago
> proving safety for any nontrivial program. I haven't done this, but probably the surest way to do that would be to use a proof assistant and extract the result to Standard ML or to OCaml. Standard ML has verified implementations,
783.
▲
by
trealira
3y ago
Rust was originally garbage collected. From Graydon Hoare's post, he didn't want explicit lifetimes originally either. He agreed because he thought they would always be inferred by the compiler. https://graydon2.dreamwi
784.
▲
by
trealira
3y ago
Yeah, I use GNOME on my laptop every day, and I say it's pretty good. Things "just work" enough for me to focus on doing my work or enjoying myself without having to worry about the DE, and I like the defaults, mostly; it&#
785.
▲
by
trealira
3y ago
It's not a conspiracy of the ruling class that housing has gotten more expensive. It's due to regulatory restrictions on housing and new homeowners being able to afford high prices through locked in low interest mortgages. The reg
786.
▲
by
trealira
3y ago
> The current system, in place since a few decades, is akin to a voucher system. I.e. the funding is ultimately via the taxpayer, but through different organizations. As an American, this sounds like exactly like a charter school system
787.
▲
by
trealira
3y ago
> Hand-written parsers are even worse. Using an LR parser generator is worth the time investment. I'm curious, what makes you say this? From what I've read online secondhand, people tend to recommend handwritten recursive desce
788.
▲
by
trealira
3y ago
> idea that any observable behaviors between genders is due to the nature of genders themselves. > This is the nature of misogyny. The invalid logical implication that gender controls behavior. Why do you consider the very suggestion
789.
▲
by
trealira
3y ago
Sometimes, if your computer has memory to spare, allocating more memory will make the program faster. For example, I've read a paper that found that, for a compiler written in C, allocating tree nodes using arenas and deallocating aren
790.
▲
by
trealira
3y ago
> It's not perfect, but it does arguably do a pretty good job as long as you're writing modern C. There's no such thing as modern C. C code that's written neatly and meticulously looks the same today as it did 30 or 4
791.
▲
by
trealira
3y ago
This is still true, and it's mandated by the ISO C standard that a[i] is equivalent to (*((a)+(i))) (yes, they specify it with that many parentheses). You're still able to compile code that treats a[i] and i[a] interchangeably. h
792.
▲
by
trealira
3y ago
Prior to C99 (i.e., in C90), there was a rule that any undeclared identifier id that was followed by a function call parenthesis would be treated as though there were an implicit declaration in the scope in which it was used like this:
793.
▲
by
trealira
3y ago
I also replied to OP, but SDL is popular for this. https://www.libsdl.org/
794.
▲
by
trealira
3y ago
You could write it using SDL2, a popular C library. They say the support iOS and Android: https://wiki.libsdl.org/SDL2/Installation
795.
▲
by
trealira
3y ago
That does make sense. My bad, I should have looked closer and noticed the implicitly defined functions. It's not even a good idea to do that on modern computers, because implicitly declared functions do type promotions from float to do
796.
▲
by
trealira
3y ago
I haven't looked that deeply, but I don't see many sins in this source code, either, except for the K&R style, weird formatting and doing too much in one line, like this line in the file CAT.C: if(*(Ptr = argv[i]) == '
797.
▲
by
trealira
3y ago
Since you mention it, I recall that it's the same thing in OpenBSD: their policy is "base builds base."
798.
▲
by
trealira
3y ago
It has things to teach beginner, intermidiate, and advanced users of Git, though the very first levels are for introducing commits and branches. So far, it's the best tutorial I've found on Git.
799.
▲
Visual and Interactive Git Tutorial
(learngitbranching.js.org)
2 points
by
trealira
3y ago
|
1 comments
800.
▲
by
trealira
3y ago
From what the employee said, they're reluctant to take any action at all, like hiring more staff or caging certain merchandise like beer. > Corporate ignored employees’ requests to put booze in locked cases because the liquor aisle
801.
▲
by
trealira
3y ago
There's PreScheme, which is a restricted dialect of Scheme that compiles to C. I haven't used it, but it seems like C with Lisp syntax. It has no support for closures, garbage collection, or first-class continuations. Vectors aren
802.
▲
by
trealira
3y ago
I agree that being able to have children on a single income without 1950s gender roles would be the most ideal outcome. Like I said, though, I kind of wonder how a country could get there. If it became more common, the country would become
803.
▲
by
trealira
3y ago
I don't think feminism ruined America. > I thought it was WW2 and the lack of men to do the jobs they usually would. I thought it was common to teach that women's employment rose with second-wave feminism in the 1960s. My backg
804.
▲
by
trealira
3y ago
Isn't feminism and the women's liberation movement what caused women to stop becoming stay-at-home mothers and enter the workforce instead?
805.
▲
by
trealira
3y ago
Feminism arose in the US during the 1950s in the first place because a significant amount of women were not satisfied with being stay-at-home mothers and wives. Even if the world were suddenly taken back to the 1950s, the same thing would h
806.
▲
by
trealira
3y ago
>If defining value semantics was so simple you wouldn't have had to bring up Pin pointers (which I assume are not just pointers, but something special that needs to be kept in mind) [...] Pin<P> is basically a wrapper for any
807.
▲
by
trealira
3y ago
> This might be influenced by the fact that I've used C/C++ for much longer, but my impression is that Rust is an even larger language with more details to learn than C++. The difference is that in Rust if you get the details w
808.
▲
by
trealira
3y ago
I answered "Yes but I'd have to look some details up." I don't know as much as I'd like. I'm currently taking notes going through the textbook "Computer Networking: A Top-Down Approach Featuring the Intern
809.
▲
by
trealira
3y ago
> Funny thing is I actually learned basic programming _before_ I could read fluently. I remember the hardest thing about it being struggling to read the books I was learning from. Programming itself seemed pretty straightforward in compa
810.
▲
by
trealira
3y ago
> "it's" is a contraction for "it is". It's true, but it seems orthographically inconsistent with other possessive forms; after all, "John's" can be a contraction for "John is," or i
More ›