[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

what are you working on /g/? previous thread >>59045009

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 56
Thread images: 8

File: haskell logo.png (49KB, 1000x716px) Image search: [Google]
haskell logo.png
49KB, 1000x716px
what are you working on /g/?
previous thread >>59045009

daily reminder functional programming is the future
daily reminder haskell can do what your language does in a third of the code
>>
First for
R U S T
U
S
T
>>
File: 220px-Algol68RevisedReportCover.jpg (14KB, 220x326px) Image search: [Google]
220px-Algol68RevisedReportCover.jpg
14KB, 220x326px
>>
>>59047881
bust
>>
File: 1465255856671.jpg (54KB, 240x430px) Image search: [Google]
1465255856671.jpg
54KB, 240x430px
>his CPU doesn't run on lambdas
>>
>>59047891
>he doesn't have a lisp machine
>>
>>59047895
I have a Racket machine.
>>
who here /unironic-lisp-style-in-haskell/
>>
>>59047895
i have a kekskell machine which roleplays as a lisp machine
>>59047912
unironically me
>>
>>59047882
If you write in C or any of its derivatives, your code most likely sucks and is extremely unreadable.
>>
You faggots are inane if you can't invert a n-ary tree.
>>
File: 1483721177622.png (94KB, 396x395px) Image search: [Google]
1483721177622.png
94KB, 396x395px
Is there a self-hosting bare bones lambda calculus interpreter? I'm sick of normal languages.
>>
>>59047960
make one, dumbass
also, just because it's turing doesn't mean it's useful.
>>
>>59047930
You can write very elegant and clean C code.
You can write Haskell code which is a line-noisy clusterfuck.
C++ is just a fucking travesty though.
>>
>>59047960
types or no types?
>>
>>59047981
>make one, dumbass
I wouldn't be asking if I even considered that possibility.
>useful
what a meaningless word which is itself not useful.
>>59047988
I honestly don't even care at this point.
>>
>>59047930
>series of function calls
>unreadable
>>
Daily reminder. If you compile with flag '-masm=intel' instead of '-masm=att', you eat shit.
>>
>>59047960
>self-hosting
>interpreter
What is running the 'base' interpreter?
Or is it just turtles all of the way down?
>>
>>59047996
why not haskell then?
>>
>>59048012
>What is running the 'base' interpreter?
The interpreter itself. I couldn't care less what language they used to bootstrap.
>>59048035
I don't know why you think it fits the description of "bare bones"
>>
>>59048047
>The interpreter itself
What's the fucking point, then?
Why wouldn't you just run the program on the bootstrapping program?
A "self-hosting interpreter" is probably one of the most useless things you could write.
>>
>>59048047
Haskell is 99% typed lc

It also adds type classes, pattern matching and pure IO
>>
>>59048056
>What's the fucking point, then?
I don't want it to be written in a garbage language.
>Why wouldn't you just run the program on the bootstrapping program?
Why would I?
>A "self-hosting interpreter" is probably one of the most useless things you could write.
I don't quite get why you think that's the case. And I didn't say I was going to write such a thing, I was asking if it was already available for a non-garbage language.
>>59048063
You're using some kind of strange number system if you think this is true.
>It also adds type classes, pattern matching and pure IO
So this is just 1% of Haskell according to you?
>>
File: 1374574508775.jpg (29KB, 499x500px) Image search: [Google]
1374574508775.jpg
29KB, 499x500px
>>59047872
>No /dpt/ in the OP
You really fucked up.
Don't post your stupid special snowflake shit, and just stick to the standard format, including the thread title.
>>
>>59048090
>So this is just 1% of Haskell according to you?
yes
>>
>>59048102
Could you stop lying please?
>>
>>59048090
>I don't want it to be written in a garbage language.
Write a self-hosting compiler then.
>Why would I?
Performance reasons.
Not wasting your fucking time.
>I don't quite get why you think that's the case.
As above.
>>
>>59048098
remake the thread senpai, i would but for some reason the captchas shitting the bed on me
>>
>>59048129
Duplicating the thread at this point won't help.
Making a new one would only be a good idea if OP deleted this thread, but I think the maximum amount of time you're allowed to delete a thread in has already passed.
>>
>>59048137
just make a new one and let this drop off, its important to have the subject line otherwise people will assume theres no /dpt/ active
>>
>>59048098
>>59048129

new thread with /dpt/ in the subject so it can be found via catalog:
>>59048165
>>59048165
>>59048165
>>
>>59048114
>Write a self-hosting compiler then.
I have never done self-hosting ones, I would imagine it's a lot harder if the language you want is pretty minimal.
>Performance reasons.
I'm fine with performance similar to other languages which already use self-hosting interpreters.
>Not wasting your fucking time.
And you think writing a compiler wouldn't be considered a waste of time if such a thing was already available?
>>
>>59048187
>other languages which already use self-hosting interpreters
Like what?
I know of languages that have self-hosted JIT compilers, just not actual interpreters.
>>
>>59048202
Don't know about other lisps, but Scheme commonly uses one.
>>
>>59048202
Scala has an interpreter. Self-Hosted is not really the case,it runs atop a Java VM which itself runs atop an OS Kernel. But up there it is running on Scala.
>>
>>59047737
Found what I was doing wrong. That algorithm only works for lines with a slope below 1, while the example I was using had a slope above 1, which is why it didn't work for shit.
>>
>>59047872
Anyone here familiar with SCPI?

What about the Rohde & Schwarz CMW 500?

At work we do RF testing on cell phones, and i've learned that one can connect directly to the instrument using something called the "Raw Socket API". (basically just telnet to the instrument on port 5025) Once connected, you can use SCPI commands/queries to control the instrument.

SCPI appears to be some sort of colon-delimited scripting language.

I don't really know that many SCPI commands yet, but i'm looking to learn more.

I haven't found much instruction on the subject, with the exception of one little webinar-video that helped to get me started:
https://cdn.rohde-schwarz.com/pws/videos_5/application_5/Rem_Contr_03_Remote_Control.mp4?w=960&h=540
>>
And here we go again with CS-students General.
>>
>>59050187
/dpt/ has been around for years
>>
I'm interested in learning a (pure) functional language. Which use cases would be better suited for a (pure) functional language instead of another one (Java, C++, etc.)?
>>
>>59050531
JavaScript
>>
>>59050531
Haskell is a pure functional language

In terms of better suited, things that are at a higher level, as well as greater safety
>>
write a function that returns the average of two integers
>>
>>59050531
> Which use cases would be better suited for a (pure) functional language instead of another one
Anything which doesn't involve low-level state mutations.
>>
>>59048063
GHC isn't even close anymore and nobody uses vanilla haskell in real projects
>>
>>59050562
C
#include <stdio.h>

int main(){
int a;
int b;
return (a+b)/2;
}
>>
>>59050564
monads tho
>>
I only use a very minimal amount of Vim's key bindings. I'm getting tired of Vim because I can't copy code to clipboard at times.

How hard is it to learn spacemacs? Is there something like vimtutor?
>>
>>59050597
>>59050597
No parameters?
>>
>>59050562
static int averageOfTwo(int first, int second) => (first + second) / 2;
>>
>>59050769
Not hard at all, especially if you know vim already.
> Is there something like vimtutor?
There is evil tutorial, which is pretty much vimtutor, but it's very bare-bone and you're really want to read spacemacs docs: http://spacemacs.org/doc/DOCUMENTATION.html .
>>
>>59050954
wrong
>>
File: 1479322817375.png (47KB, 500x430px) Image search: [Google]
1479322817375.png
47KB, 500x430px
Chimpanzee here

How do I into haskell lambdas?
>>
>>59047872
Reading 'Haskell Programming from First Principles' and doing the exercises.
Only at Chapter 3 atm. If I get at least to Chapter 10 I'm definitely going to buy it.
>>
>>59052898
\x -> e
What's so hard?
Thread posts: 56
Thread images: 8


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.