本月博客排行
-
第1名
龙儿筝 -
第2名
lerf -
第3名
fantaxy025025 - johnsmith9th
- zysnba
- xiangjie88
年度博客排行
-
第1名
青否云后端云 -
第2名
宏天软件 -
第3名
gashero - wy_19921005
- vipbooks
- benladeng5225
- e_e
- wallimn
- javashop
- ranbuijj
- fantaxy025025
- jickcai
- gengyun12
- zw7534313
- qepwqnp
- 解宜然
- ssydxa219
- zysnba
- sam123456gz
- sichunli_030
- tanling8334
- arpenker
- gaojingsong
- kaizi1992
- xpenxpen
- jh108020
- 龙儿筝
- wiseboyloves
- ganxueyun
- xyuma
- xiangjie88
- wangchen.ily
- Jameslyy
- luxurioust
- mengjichen
- lemonhandsome
- jbosscn
- zxq_2017
- lzyfn123
- nychen2000
- forestqqqq
- wjianwei666
- ajinn
- zhanjia
- siemens800
- Xeden
- hanbaohong
- java-007
- 喧嚣求静
- mwhgJava
最新文章列表
30天了解30种技术系列---(9)可伸缩的跨语言服务开发框架Thrift
P.S:本系列文章的目的是帮助大家开拓眼界,所以内容不会特别详细,大家可以自行根据需求进行学习,我的目标是让大家花费1-3分钟来知道一个靠谱的技术。
什么是RPC
RPC(Remote Procedure Call Protocol)——远程过程调用协议,它是一种通过网络从远程计算机程序上请求服务,而不需要了解底层网络技术的协议。
你最深爱的编程语言其实很烂
我最近写了几篇比较严肃的博客,是关于一些沮丧的事情,结果我开始有些忧郁。很严重。所以,我想应该说些比较轻松的事情。我要做的就是数落大家最喜欢的编程语言。你会问我为什么,为什么要搞这种恶作剧?亲爱的朋友,我能想出三种理由。
1. 我无聊,没有更好的事情去做。
2. 我自命不凡,坐在家里,深知即使我侮辱了你编程最喜欢用的语言,你也拿我没折。除非你能发明出这样的东西:
3. 我忘了第三个理由 ...
haskell - zipper - use examples: file system and watch the steps
we have seen the zipper in the previous post, now we will see some application and examples of Zippers.
firt, we will examine a simple file system implemented with Zipper.
type Name = Strin ...
haskell - zipper - taking a tree
referential transparency,, one value is as good as another in Haskell if it represents the same thing.
e.g.
we have to have some way of knowing exactly which five in our tree we want to ch ...
haskell - few more monad - Making Monads
now, we will see how we make monads,.
the guideline of making hte monad is not to make a monad for the purpose of monad. normally, we usually make a type that whose purpose is to model an aspect ...
haskell - few more monad - solving problem with Monads
We have seen the RPN can be solved with haskell in previous examples, now we will see how we can do use monad to solve it.
With monad, you might not gain more in terms of just solving hte problem, b ...
haskell - few more monad - Useful monadic functions
Because the Monad are so lynch point of the haskell language, we will examine more of the monadic functions, the functions that we are going to examine include:
operate on monadic values
retur ...
haskell - few more monad - Error on the wall
in the module called "Control.Monad.Error" , it has defined a type called Error, adn that type hass been made an instance of the Monad (Either e), and the definition of that is
instance ...
haskell - few more monad - stateful computation
Haskell is a pure - in another word, a stateless computation, where a program makde of cuntions that can't change any global any global state or variabble, they can only do some computations and retu ...
haskell - few more monad - Reader Monad
we have seen before the (->) r is an instance of functor, and we can do things like this :
this basically allow us to do the fmap function mapping.
ghci> let f = (*5)
ghci> let g = (+ ...
haskell - Monads - difference lists
as We seen in previous example, where it is very low effecient to construct the list by appending, while if hte list is constructed in the wrong order, the performance can be worse, So if there is som ...
haskell - few more monad - Writer Monad
We will going to examine more monad, which will makes us more easily with a more variety of problems. exploring a few monads more will also solidify our intuition for monads.
to install the Mona ...
haskell - Monads - problem solving : A knight's quest
let's use the monad to solve some problems. here is a famous question,
Say you have a chess board and only one knight piece on it. We want to find out if the knight can reach a certain position i ...
haskell - Monads - the list monad
in this post, we will going to examine the list a monad, first let's see what is the definition of the list monad, here is the definition of the
instance Monad [] where
return x = [x]
...
haskell - Monads - the list monad
in this post, we will going to examine the list a monad, first let's see what is the definition of the list monad, here is the definition of the
instance Monad [] where
return x = [x]
...