Better HN
topnewbestaskshowjobs
Log inSign up

ece

939 karma · joined Aug 1, 2017 (9y ago) · 968 submissions

Living somewhere between eecs and cecs.
Submissions

comment 9y ago · link · parent

Joyent was definitely ahead of the game, hopefully Samsung is better at acquisitions than Oracle.

comment 9y ago · link · parent

I think the key words are "reentrant function" which in the context means atomic, pure functions. He didn't say something about OO, like DI or multiple inheritance in a some clean way, or something about classes or structs. This is more FP than not. By far.

903.

Automatically Generating Commit Messages from Diffs(arxiv.org ↗)

1 points · by ece · 9y ago · 1 comment

comment 9y ago · link · parent

If the EU or US regulators can force Google and Microsoft to unbundle and provide APIs, surely unbundling chipsets fit in the same category. Making chipsets was a successful business for quite a few companies, too bad the FTC didn't force Intel to provide enough documentation, like it mandated the number of PCI-E lanes.

Now if the NSA got to the FTC, that would be different.

comment 9y ago · link · parent

Thank you for the links. Here is FTC's ruling against Intel from 2010: https://www.ftc.gov/news-events/press-releases/2010/08/ftc-s...

Seems like they mention chipsets, but didn't go far enough given what happened to Nvidia chipsets vis-a-vis GPUs. They could do a little bit better as a regulator.

http://www.mercurynews.com/2010/02/13/nvidia-gains-ally-agai...

comment 9y ago · link · parent

The consumer market might be small, but the enterprise market would be what it is. I can't imagine openbmc being more expensive than a builtin wifi card with an external antenna connector for basic features. Features like RDP would be more off course. I imagine they could take a similar embedded processor and slap openbmc on it and market it as open just fine. The fact is, no alternatives to Intel PCH exist, so doing this isn't even an option. If Nvidia nForce or a VIA chipset existed for the newest Xeon with similar capabilities as the PCH minus the Intel ME, would you really doubt that there wouldn't be some motherboard maker that would go this route?

VIA used to make dual socket server class chipsets, for the pentium 3, which ever age was in.

comment 9y ago · link · parent

That is not an apples to apples comparison. Plenty of features differ from motherboard to motherboard. Someone like an ASUS could adopt openbmc much easier if an alternative chipset existed. I'm not arguing about the marketability of openbmc, I know it exists. I'm talking about why there are no chipset alternatives to Intel PCH that would force Intel ME on us.

comment 9y ago · link · parent

What happened to 3rd party chipsets? Seems like VIA, ALi, SiS, Nvidia nForce, all stopped making them for Intel processors around 2008. If there were alternative chipsets still around, we would see more motherboard makers adopting something like openBMC with an alternative chipset and using it. No Intel PCH, no Intel ME.

comment 9y ago · link · parent

Wouldn't it just take a motherboard maker or two to find an alternative to the PCH, like Nvidia nforce or a VIA chipset. adopt something like openbmc and sell it as an open feature? No intel PCH, no Intel ME. Seems like the Linux kernel is eager to support it: https://lwn.net/Articles/683320/

What happened to 3rd parties making chipsets? Another case of Intel abusing it's monopoly?

comment 9y ago · link · parent

https://code.facebook.com/posts/1601610310055392/introducing...

It could be an open solution too. I have only cursory followed OCP and other hardware advances, but this being used with Raptor's power servers. Opensparc before Oracle, and recently the RISC V community might have built something similar too.

comment 9y ago · link · parent

It's a pretty good treatment. I think the solving the root cause would be something like a constant time compiler, which I don't think is going to happen. You don't need to mock at all if you do DI and modularity well in Guice or Spring or something else (it can be the rare exception for a few libraries that use say private constructors). You can also write 3-5 line tests that will absolutely test everything in your program, and be able to debug it line by line in a debugger. So, I'm not sure I would agree with Rich Hickey on this. REPLs are no substitute for a good IDE and debugger running a series of declarative tests.

comment 9y ago · link · parent

For web development, yes. Once you know pretty much what you want, and have a good idea of how you're going to go about implementing it, it can be fast. If you're new, don't know what you want, and are starting out on a framework, it can be an impassable chasm. If you're just experimenting, it's also a bit too much.

Starting with a simple unit test or spec (what I meant by functional testing, though this can be BDD too) can be easier to start with and change as you figure out what you want. Even with specs, or a BDD framework like you said, no need to bring in a whole new DSL unless you need it IMHO, others may disagree.

comment 9y ago · link · parent

A good IDE will go a long way here. Any of the IntelliJ IDEs are interactive in almost any aspect of technical coding. Setting up and running a test is a left click, if you've written the function and annotated it in Scala. I've been trying to use Atom for some embedded coding, and some of the plugins for it are pretty good, but not completely free. MS VS is up there too, but I haven't used it in a long time.

Off course, writing testable code using OO almost requires dependency injection IMO. With FP, it's almost trivial.

comment 9y ago · link · parent

TDD can help with this. I more often than not, will write a unit test or functional test first, then work on the code for that test where I'm just running that one test until it succeeds. After I have individual parts working, I will integrate everything, which again will just be another integration test run from the IDE.

I realize this isn't always possible, and is probably easier to do in a managed language, but you can cut down on iteration times by mostly forcing the IDE to do incremental compiles. You can work in real-time on code that might take tens of minutes for a full build.

TDD is fun.

comment 9y ago · link · parent

Cui bono indeed. Corruption benefits. I don't think the spy case affected much of anything.

comment 9y ago · link · parent

India has the most thorium reserves, according to USGS: https://en.wikipedia.org/wiki/Occurrence_of_thorium

And they have had the plans and motivation to build domestic reactors for the past two decades: https://en.wikipedia.org/wiki/India%27s_three-stage_nuclear_...

NSG membership keeps getting held up by someone or the other and would provide more energy security for India.

http://timesofindia.indiatimes.com/india/nuclear-reactor-at-...

comment 9y ago · link · parent

The easter egg is the worst ever.

comment 9y ago · link · parent

I believe you are right. Azul has released a JIT compiler based on llvm: http://www.infoworld.com/article/3193078/java/azul-introduce... Also: https://www.excelsiorjet.com/

and there seem to be open source projects like vmkit, https://github.com/ReadyTalk/avian that are somewhere in between.

comment 9y ago · link · parent

They are working on AOT compilation: https://www.youtube.com/watch?v=Xybzyv8qbOc&index=241&list=W...

comment 9y ago · link · parent

Violence doesn't work for a political agenda. It never has.

I am distinguishing between the historically offensive violent ideologies of nazis and racists, with the historically reactionary use of violence-as-a-tactic for antifa and black bloc.

The latters use of violence should be stopped, since it isn't helping in furthering the lefts political agenda. We wouldn't be talking about them at all if not for the rise of Hitler in the 1930s and Trump now.

These groups are not all the same level of threats to society. We need to focus on stopping the violence on all sides through better protesting permits apparently, and stopping the fascists and racists from gaining more political power.

comment 9y ago · link · parent

Overall, I feel like with the success of Go and Kotlin, having an easy to learn language definitely wins. Faster runtime speed might be a bigger 'market' than wanting fast compile times, which matters if you have a large enough codebase. I do wish Scala native was further along, and if the language was going to get simpler, it would focus more on native speed than compilation time. Quite a few Scala compiler releases have made big strides in compilation times, to the extent that java vs scala compilation times I feel are the same or well worth the cost, so this has been and will be an ongoing effort. The Java group is also working on being native, so we will likely see Java native when it gets there.

comment 9y ago · link · parent

Violence in defense is also not the same as violence in offense. Defending yourself or your group is the right thing to do, but you can overreact and be counterproductive to your goals. Fascism and racism have no qualms about using offensive violence.

https://www.nytimes.com/2017/08/17/us/antifa-left-wing-facti...

comment 9y ago · link · parent

Scala has scala-native: https://github.com/scala-native/scala-native

Any myriad of FP (scalaz, cats), concurrency libraries (rx, akka)

scastie: https://scastie.scala-lang.org/

scala.js: https://www.scala-js.org/

This FP-focused fork of the Scala compiler: http://typelevel.org/scala/

The next gen Scala compiler called dotty: http://dotty.epfl.ch/

Twitter doesn't mention scala-native...

comment 9y ago · link · parent

The use of violence as a tactic while wrong isn't the same as violence-dependent ideologies like fascism and racism.

Both should be opposed in effective ways.

https://www.nytimes.com/2017/08/17/opinion/how-to-make-fun-o...

comment 9y ago · link · parent

Being able to write asynchronous (multi-threaded or not) code so easily using FP is most definitely not a pitfall.

Even in the most simple multi-threaded imperative programs, no compiler or hardware will give you almost any sort ordering guarantees by default. You have to use atomics or volatile or something else to get specific ordering guarantees. It's the same in FP compilers too.

comment 9y ago · link · parent

There is a point between a peaceful environmental or justice or equality protest and something as inherently violent as fascism or racism which was the mix in Charlottesville. Historically, fascism has always had an aspect of violence, and the same with racism. You simply cannot make the same case with either antifa or even black block, they are reactionary to fascism and oppression, if not racism respectively.

Black bloc has its roots opposing police violence, and this is consistent through their history, so I should have said "fascist, racist and anti-oppression rally"

comment 9y ago · link · parent

Which part? I think even John Carmack in the video talked about the upfront thinking required for FP. If every CS student learned category and type theory like they learn complexity theory; and FP compilers could optimize type classes and all the object creation, FP would definitely be more widely used. But, yes, there is definitely a cost to picking up FP today in almost any domain, but it's getting lower.
1
2930313233