Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hornetblack
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
91.
▲
by
hornetblack
12y ago
It's always annoyed me that Events would tell me the temperature in °F.
92.
▲
by
hornetblack
12y ago
This years Defcon CTF has some RF hacking. An FPGA running an MSP430 was one of the flags. That's some cool low level stuff.
93.
▲
by
hornetblack
12y ago
Rust also allows polymorphic return types. trait Bounded { fn min_bound() -> Self; fn max_bound() -> Self; } Which can be used like so. Using type inference. fn add_min_to_set<T:Bounded, S:Mutable
94.
▲
by
hornetblack
12y ago
minBound and maxBound are typeclass functions. Typeclass's are a similar to java interfaces. So the Bounded typeclass is defined as class Bounded a where minBound :: a maxBound :: a If you have a function and y
95.
▲
by
hornetblack
12y ago
I'm not sure that delay lines will retain data when the chucks that hold them are unloaded by the server.
96.
▲
by
hornetblack
12y ago
Mill architecture support it, by having multiple add instructions. add is wraparound add. addx returns a NaR^[1]. addw returns a double width value. As Mill stores integer size of registers these instructions apply to all integer sizes and
97.
▲
by
hornetblack
12y ago
I did that to a ISP provided router. The company wouldn't enable port forwarding for games. So I did it myself. Why do those routers have open telnet interfaces.
98.
▲
by
hornetblack
12y ago
In go you use '.' for namespace accesses. Eg: os.NewFile. But in C '.' means access struct member. So the · is used instead so to do f = os.NewFile(3, "/dev/zero") # Go you would use f
99.
▲
by
hornetblack
12y ago
Victoria has done it before. The a series of the TV show Underbelly was banned temporally. The show depicted a true story of a crime that was still going through the court system. Australian Juries are not supposed to know anything about a
100.
▲
by
hornetblack
12y ago
Students at UNSW doing Advanced Operating systems use a SabreLite board running seL4. They're pretty similar so you should be able to get it working.
101.
▲
by
hornetblack
12y ago
I was just printing on someone else's computer running barebones Lubuntu. I found that going to localhost:631 (cups web admin) has all the settings needed to add the printer, which came up as "Detected network printers". I th
102.
▲
by
hornetblack
12y ago
I literally laughed out loud at C++ in wtf column.
103.
▲
by
hornetblack
12y ago
I live in Australia. My dad won't get air-conditioner because he knows it cost at least $1,200 to add another A/C to the grid.
104.
▲
by
hornetblack
12y ago
Looks like K12 SOCs will have x86 and ARM cores. I'm guessing HSA will be involved.
105.
▲
by
hornetblack
12y ago
In some programs I like to have something like this to catch potential bugs: int abs_s(int x) { assert(x != INT_MIN); return (x >= 0) ? x : -x; }
106.
▲
by
hornetblack
12y ago
The issue is for some programmers propensity to use ++ and -- whenever they can. So you end up with max(a++, b--) Which expands to ((a++)>(b--)?(a++):(b--)) creating unexpected results. The solution is, don't use
107.
▲
by
hornetblack
12y ago
Australia is very different from that. They banned advertising to consumers in most ways. They still can put ads in magazines for retailers (because they aren't the end user). Now we also have "plain packaging laws" which mea
108.
▲
by
hornetblack
12y ago
Napoleon wasn't short by most measures. The myth comes from two issues: Napoleon used tall soldiers in his personal guard, and British people said it to make fun of him.
109.
▲
by
hornetblack
12y ago
Reminded me of Subsurface maintainer's talk on Qt: https://www.youtube.com/watch?v=ON0A1dsQOV0 He found it was very good for cross platform work.
110.
▲
by
hornetblack
12y ago
MS specifically implemented __restrict: > __restrict is similar to restrict from the C99 spec, but __restrict can be used in C++ or C programs. http://msdn.microsoft.com/en-us/library/5ft82fed.aspx
111.
▲
by
hornetblack
12y ago
As dbaupp said it's only an optimisation. So you should be able to use mainline LLVM now. Therefore using PS4 with Rust wouldn't be too complicated.
112.
▲
by
hornetblack
12y ago
Here I was thinking: Wouldn't it be nice if seL4 were Open source.
113.
▲
by
hornetblack
12y ago
Rust and the PS4 toolchain are both LLVM. So I can see some possibility there. Rust currently runs on it's own patchset now, but the intention is to be fully working with mainline LLVM.
114.
▲
by
hornetblack
12y ago
Leauge, I just call Union: Union.
115.
▲
by
hornetblack
12y ago
Hard coded compiler version? Could not find compiler set in environment variable CC: gcc-4.8. I'm running gcc-4.9. I got it working by doing: ln -s /usr/bin/gcc ~/bin/gcc-4.8 ln -s 
116.
▲
by
hornetblack
12y ago
I find that a mustBeNil function is useful: func mustBeNil(err error) { if err != nil { panic(err) // or log.Fatal(err) } } or func mustBeNil(err error, msg string) {
117.
▲
by
hornetblack
12y ago
I got 1. New Zealand 2. South African 3. Australian. With native languages as 1. English 2. Chinese 3. Greek I'm English speaking Australian. So it got very close.
118.
▲
by
hornetblack
12y ago
I call both Soccer and AFL Football, and call Rugby, Footy. I only ever talk about AFL with my mother, Soccer with friends and Rugby with no one. It can be really confusing when all three are somewhat popular in one country.
119.
▲
by
hornetblack
12y ago
I've only seen one thing actually use it in Go: func Polar(x complex128) (r, θ float64) { return Abs(x), Phase(x) } It seems to be good for documentation reasons.
120.
▲
by
hornetblack
12y ago
> break-less switch, optional fall-thru Like Go and Dart?
More ›