Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hechang1997
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
hechang1997
1mo ago
Check this out: https://github.com/IntegralPilot/rustc_codegen_jvm While this cannot compile C/C++, it can serve as a fil-C alternative for unsafe pure rust code. https://news.ycombinator.com/item?
2.
▲
by
hechang1997
2mo ago
> It's easy to forget how different the Middle East looked before the conquest of Islam starting in 600 AD. It’s easy to forget because it’s a fabricated perspective. Islamic/Arabian conquest of MENA isn’t really that different
3.
▲
by
hechang1997
5y ago
It's YouTube that's the perpetrator of the tragedy of the commons here. There must be a mandatory expiration of any intellectual property into the public domain after a set amount of time and/or after the owner died and the s
4.
▲
by
hechang1997
6y ago
I would go so far as saying people are born racist and can only grow out of it.
5.
▲
by
hechang1997
6y ago
Not sure how this could work geopolitically. You need to able to build it to prevent a country from having the ability to hold another country hostage by cutting another country out of the network.
6.
▲
by
hechang1997
6y ago
Ops... Brain just shortcut
7.
▲
by
hechang1997
6y ago
Yes, currently the 2nd amendment only guarentees that no censorship comes from government. We need a stronger guarantee: no censorship on any public discourse from any party. Not any kind, because even well intentioned censorship causes pro
8.
▲
by
hechang1997
6y ago
I saw posts on r/rust talking about making a rust-like language for non system programming. I think Swift fits exactly that purpose, only frustrated by Apple giving it Windows support a decade after it's creation.
9.
▲
by
hechang1997
6y ago
That depends though. In Java/C# dereferencing a null reference is a runtime error and you can pinpoint exactly where it happened. In C++/Rust, dereferencing null pointers is undefined behavior since the compiler makes assumptions
10.
▲
by
hechang1997
6y ago
Agreed. I think schools that turns bad students into good ones deserve more funding and publicity than schools that turns good students into excellent ones.
11.
▲
by
hechang1997
6y ago
The law is unjust. The anti-defammation law was used to stifle press freedom and suppress journalists. It doesn't matter whether it's lawful in Thailand or not, freedom of speech without the fear of persecution is a part of the In
12.
▲
by
hechang1997
6y ago
https://en.tripadvisor.com.hk/Hotel_Review-g580110-d594766-R... Here's the resort in question.
13.
▲
by
hechang1997
6y ago
Not in China. Please use a forward proxy if you were to use Tor in China.
14.
▲
by
hechang1997
6y ago
I used it quite a bit for simple scripting before I learned python.
15.
▲
by
hechang1997
6y ago
If you use electric motor, the noise of an internal combustion engine can be eliminated, although the propellers themselves make huge noise too.
16.
▲
by
hechang1997
6y ago
I think the article is talking about capturing inert N2 from atmosphere directly with benzene, not about nitrogen pollutants like NOx.
17.
▲
by
hechang1997
6y ago
You can also make it with natural gas and capture the CO2 produced.
18.
▲
by
hechang1997
6y ago
That complexity comes from the fact that you are using non ASCII characters. UTF8 is a superset of standard ASCII. If you are using only standard ASCII characters, they're exactly the same thing.
19.
▲
by
hechang1997
6y ago
> Also the whole language suffers from being a weird mix of C-like statement syntax and FP-like expression syntax I quite like this though. All other expression based languages like MLs and Haskell use indentation, making it very hard to
20.
▲
by
hechang1997
6y ago
I don't think you can have shared IPC memory in rust. You have to use message passing. Of course you are on your own completely, and there will be weird logic bugs when you mess it up. However, there won't be any memory corruption
21.
▲
by
hechang1997
7y ago
I found the "Too Many LinkedList" tutorial is very helpful. Try to follow the tutorial by writing your own code.
22.
▲
by
hechang1997
7y ago
Isn't Ada already used in areospace industry?
23.
▲
by
hechang1997
7y ago
We should start a rating boycott where we rate highest for all ratings.
24.
▲
by
hechang1997
7y ago
"Too many linkedlists" is an excellent tutorial for understanding ownership IMO.
25.
▲
by
hechang1997
7y ago
https://www.snoyman.com/blog/2018/11/rust-crash-course-05-ru...
26.
▲
by
hechang1997
7y ago
This article does a great job explaining the subtleties about rust closures. A subtle point often missed is that if you want the anonymous structure of your closure itself to own a value, so that you can have a closure with a `'static`
27.
▲
by
hechang1997
7y ago
It is actually easier to introduce an undefined behavior in unsafe rust than in C, since rust use the guarantee that two mutable references living that the same time cannot aliase to optimize code.
28.
▲
by
hechang1997
7y ago
It's so disingenuous to call out employees advancing their agenda when the corporations themselves are constantly abusing their power to advance their agenda. > And the risk of people abusing power to advance their personal agenda i
29.
▲
by
hechang1997
7y ago
Also a Chinese here, I think free trade and globalization should be coupled with strong domestic redistribution. Otherwise, inequality will go through the roof.
30.
▲
by
hechang1997
7y ago
This is very strange to me. Isn't Japanese supposedly to be very easy to rhyme due to its very simple phonetics?
More ›